jenkins-bot has submitted this change and it was merged.
Change subject: Remove obvious function-level profiling
......................................................................
Remove obvious function-level profiling
Change-Id: I435365313846d7529601a2440ea2e3c40a5418f3
---
M Cite_body.php
1 file changed, 0 insertions(+), 7 deletions(-)
Approvals:
Legoktm: Looks good to me, approved
jenkins-bot: Verified
diff --git a/Cite_body.php b/Cite_body.php
index 98f3efc..dc17416 100644
--- a/Cite_body.php
+++ b/Cite_body.php
@@ -641,7 +641,6 @@
return '';
}
- wfProfileIn( __METHOD__ );
wfProfileIn( __METHOD__ . '-entries' );
$ent = array();
foreach ( $this->mRefs[$group] as $k => $v ) {
@@ -685,8 +684,6 @@
} else {
$ret = $this->mParser->unserializeHalfParsedText( $data
);
}
-
- wfProfileOut( __METHOD__ );
// done, clean up so we can reuse the group
unset( $this->mRefs[$group] );
@@ -966,11 +963,9 @@
* arbitrary number of tokens separated by [\t\n ]
*/
function genBacklinkLabels() {
- wfProfileIn( __METHOD__ );
$text = wfMessage(
'cite_references_link_many_format_backlink_labels' )
->inContentLanguage()->plain();
$this->mBacklinkLabels = preg_split( '#[\n\t ]#', $text );
- wfProfileOut( __METHOD__ );
}
/**
@@ -982,14 +977,12 @@
* @param $message
*/
function genLinkLabels( $group, $message ) {
- wfProfileIn( __METHOD__ );
$text = false;
$msg = wfMessage( $message )->inContentLanguage();
if ( $msg->exists() ) {
$text = $msg->plain();
}
$this->mLinkLabels[$group] = ( !$text ) ? false : preg_split(
'#[\n\t ]#', $text );
- wfProfileOut( __METHOD__ );
}
/**
--
To view, visit https://gerrit.wikimedia.org/r/189833
To unsubscribe, visit https://gerrit.wikimedia.org/r/settings
Gerrit-MessageType: merged
Gerrit-Change-Id: I435365313846d7529601a2440ea2e3c40a5418f3
Gerrit-PatchSet: 1
Gerrit-Project: mediawiki/extensions/Cite
Gerrit-Branch: master
Gerrit-Owner: Chad <[email protected]>
Gerrit-Reviewer: Jackmcbarn <[email protected]>
Gerrit-Reviewer: Legoktm <[email protected]>
Gerrit-Reviewer: jenkins-bot <>
_______________________________________________
MediaWiki-commits mailing list
[email protected]
https://lists.wikimedia.org/mailman/listinfo/mediawiki-commits