Remove obvious function-level profiling

Change-Id: I2270b936a1502df07f0dae529b0180908c70c58a
This commit is contained in:
Chad Horohoe 2015-02-10 14:07:45 -08:00
parent 686b777f50
commit d46d9b0c51
2 changed files with 1 additions and 8 deletions

View file

@ -223,15 +223,12 @@ abstract class BaseBlacklist {
function getSharedBlacklists() {
global $wgMemc, $wgDBname;
$listType = $this->getBlacklistType();
$fname = 'SpamBlacklist::getRegex';
wfProfileIn( $fname );
wfDebugLog( 'SpamBlacklist', "Loading $listType regex..." );
if ( count( $this->files ) == 0 ){
# No lists
wfDebugLog( 'SpamBlacklist', "no files specified\n" );
wfProfileOut( $fname );
return array();
}
@ -240,7 +237,6 @@ abstract class BaseBlacklist {
$cachedRegexes = $wgMemc->get( "$wgDBname:{$listType}_blacklist_regexes" );
if( is_array( $cachedRegexes ) ) {
wfDebugLog( 'SpamBlacklist', "Got shared spam regexes from cache\n" );
wfProfileOut( $fname );
return $cachedRegexes;
}

View file

@ -41,9 +41,6 @@ class SpamBlacklist extends BaseBlacklist {
* @return Array Matched text(s) if the edit should not be allowed, false otherwise
*/
function filter( array $links, Title $title = null, $preventLog = false ) {
$fname = 'wfSpamBlacklistFilter';
wfProfileIn( $fname );
$blacklists = $this->getBlacklists();
$whitelists = $this->getWhitelists();
@ -114,7 +111,7 @@ class SpamBlacklist extends BaseBlacklist {
} else {
$retVal = false;
}
wfProfileOut( $fname );
return $retVal;
}