mirror of
https://gerrit.wikimedia.org/r/mediawiki/extensions/SpamBlacklist
synced 2024-11-23 22:54:57 +00:00
Remove obvious function-level profiling
Change-Id: I2270b936a1502df07f0dae529b0180908c70c58a
This commit is contained in:
parent
686b777f50
commit
d46d9b0c51
|
@ -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;
|
||||
}
|
||||
|
||||
|
|
|
@ -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;
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue