Addshore has uploaded a new change for review.

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

Change subject: Stop using deprecated wfProfile methods
......................................................................

Stop using deprecated wfProfile methods

Change-Id: Ibf0d4a68e09f2680284163252ea0d1ae28de2c00
---
M includes/Cite.php
1 file changed, 0 insertions(+), 7 deletions(-)


  git pull ssh://gerrit.wikimedia.org:29418/mediawiki/extensions/Cite 
refs/changes/14/311714/1

diff --git a/includes/Cite.php b/includes/Cite.php
index ed4f869..00e8a23 100644
--- a/includes/Cite.php
+++ b/includes/Cite.php
@@ -732,7 +732,6 @@
                        return '';
                }
 
-               wfProfileIn( __METHOD__ . '-entries' );
                $ent = [];
                foreach ( $this->mRefs[$group] as $k => $v ) {
                        $ent[] = $this->referencesFormatEntry( $k, $v );
@@ -746,8 +745,6 @@
                // We add new lines between the pieces to avoid a confused tidy 
(bug 13073).
                $parserInput = $prefix . "\n" . $content . "\n" . $suffix;
 
-               wfProfileOut( __METHOD__ . '-entries' );
-
                // Let's try to cache it.
                global $wgCiteCacheReferences, $wgMemc;
                $data = false;
@@ -757,13 +754,10 @@
                                md5( $parserInput ),
                                $this->mParser->Title()->getArticleID()
                        );
-                       wfProfileIn( __METHOD__ . '-cache-get' );
                        $data = $wgMemc->get( $cacheKey );
-                       wfProfileOut( __METHOD__ . '-cache-get' );
                }
 
                if ( !$data || !$this->mParser->isValidHalfParsedText( $data ) 
) {
-                       wfProfileIn( __METHOD__ . '-parse' );
 
                        // Live hack: parse() adds two newlines on WM, can't 
reproduce it locally -ævar
                        $ret = rtrim( $this->mParser->recursiveTagParse( 
$parserInput ), "\n" );
@@ -773,7 +767,6 @@
                                $wgMemc->set( $cacheKey, $serData, 86400 );
                        }
 
-                       wfProfileOut( __METHOD__ . '-parse' );
                } else {
                        $ret = $this->mParser->unserializeHalfParsedText( $data 
);
                }

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

Gerrit-MessageType: newchange
Gerrit-Change-Id: Ibf0d4a68e09f2680284163252ea0d1ae28de2c00
Gerrit-PatchSet: 1
Gerrit-Project: mediawiki/extensions/Cite
Gerrit-Branch: master
Gerrit-Owner: Addshore <addshorew...@gmail.com>

_______________________________________________
MediaWiki-commits mailing list
MediaWiki-commits@lists.wikimedia.org
https://lists.wikimedia.org/mailman/listinfo/mediawiki-commits

Reply via email to