Addshore has uploaded a new change for review.

  https://gerrit.wikimedia.org/r/278874

Change subject: Remove use of wfProfileIn/Out
......................................................................

Remove use of wfProfileIn/Out

Change-Id: I4dff205053e654a0d463a5e947d3530735e5af49
---
M Contributors.class.php
M Contributors.page.php
2 files changed, 0 insertions(+), 16 deletions(-)


  git pull ssh://gerrit.wikimedia.org:29418/mediawiki/extensions/Contributors 
refs/changes/74/278874/1

diff --git a/Contributors.class.php b/Contributors.class.php
index 56930dc..be0e809 100644
--- a/Contributors.class.php
+++ b/Contributors.class.php
@@ -124,7 +124,6 @@
         * @return array Contributors
         */
        private function generateUnthresholdedContributors() {
-               wfProfileIn( __METHOD__ );
                global $wgMemc;
                $k = wfMemcKey( 'contributors', 
$this->getTarget()->getArticleID() );
                $contributors = $wgMemc->get( $k );
@@ -149,7 +148,6 @@
                        }
                        $wgMemc->set( $k, $contributors, 84600 );
                }
-               wfProfileOut( __METHOD__ );
                return $contributors;
        }
 
@@ -163,7 +161,6 @@
         * @return array Contributors
         */
        private function generateThresholdedContributors() {
-               wfProfileIn( __METHOD__ );
                global $wgContributorsLimit, $wgContributorsThreshold;
                $total = 0;
                $ret = array();
@@ -178,7 +175,6 @@
                }
                $others = count( $all ) - count( $ret );
                $this->setNumOthers( $others );
-               wfProfileOut( __METHOD__ );
                return $ret;
        }
 
diff --git a/Contributors.page.php b/Contributors.page.php
index a1900c4..50e13ad 100644
--- a/Contributors.page.php
+++ b/Contributors.page.php
@@ -27,7 +27,6 @@
        }
 
        public function execute( $subpageString ) {
-               wfProfileIn( __METHOD__ );
                $this->subpageString = $subpageString;
                $output = $this->getOutput();
                $this->setHeaders();
@@ -48,8 +47,6 @@
                        $output->addHTML( $this->makeForm() );
                        $this->showNormal();
                }
-
-               wfProfileOut( __METHOD__ );
        }
 
        /**
@@ -99,8 +96,6 @@
        }
 
        private function showInclude() {
-               wfProfileIn( __METHOD__ );
-
                $output = $this->getOutput();
                $language = $this->getLanguage();
 
@@ -121,15 +116,12 @@
                                        $language->formatNum( $others ) 
)->inContentLanguage()->text();
                }
                $output->addHTML( $outputHtml );
-
-               wfProfileOut( __METHOD__ );
        }
 
        /**
         * Output a machine-readable form of the raw information
         */
        private function showRaw() {
-               wfProfileIn( __METHOD__ );
                $output = $this->getOutput();
                $output->disable();
                $this->contributorsClass->setUseThreshold( false );
@@ -141,11 +133,9 @@
                        echo ( $this->msg(
                                'contributors-nosuchpage', 
$this->contributorsClass->getTargetText() )->escaped() );
                }
-               wfProfileOut( __METHOD__ );
        }
 
        private function showNormal() {
-               wfProfileIn( __METHOD__ );
                $language = $this->getLanguage();
                $output = $this->getOutput();
                if ( !$this->contributorsClass->hasTarget() ) {
@@ -166,8 +156,6 @@
                        $others = $language->formatNum( $others );
                        $output->addWikiText( $this->msg( 
'contributors-others-long', $others )->plain() );
                }
-
-               wfProfileOut( __METHOD__ );
        }
 
        /**

-- 
To view, visit https://gerrit.wikimedia.org/r/278874
To unsubscribe, visit https://gerrit.wikimedia.org/r/settings

Gerrit-MessageType: newchange
Gerrit-Change-Id: I4dff205053e654a0d463a5e947d3530735e5af49
Gerrit-PatchSet: 1
Gerrit-Project: mediawiki/extensions/Contributors
Gerrit-Branch: master
Gerrit-Owner: Addshore <[email protected]>

_______________________________________________
MediaWiki-commits mailing list
[email protected]
https://lists.wikimedia.org/mailman/listinfo/mediawiki-commits

Reply via email to