From: Bryan Davis Date: Wed, 19 Nov 2014 18:55:28 +0000 (-0700) Subject: Remove calls to legacy Profiler::debug() X-Git-Tag: 1.31.0-rc.0~13245^2 X-Git-Url: http://git.cyclocoop.org/%22%20.%20generer_url_ecrire%28%22suivi_revisions%22%2C%22id_auteur=%24connecte%22%29%20.%20%22?a=commitdiff_plain;h=ddb57b78c0b7de45c9732904f097d29dff69d65f;p=lhc%2Fweb%2Fwiklou.git Remove calls to legacy Profiler::debug() Profiler::debug() was moved to ProfilerStandard. Since we have a proposed patch set already that will remove wfProfileIn()/wfProfileout() calls that wrap whole methods this seem like an easy problem to solve by removing this logging functionality. Change-Id: I429ec29fe4393ce886361b896b650fd39480eda5 --- diff --git a/includes/profiler/ProfilerXhprof.php b/includes/profiler/ProfilerXhprof.php index 93793790dd..d67806b079 100644 --- a/includes/profiler/ProfilerXhprof.php +++ b/includes/profiler/ProfilerXhprof.php @@ -109,10 +109,6 @@ class ProfilerXhprof extends Profiler { * @param string $functionname */ public function profileIn( $functionname ) { - global $wgDebugFunctionEntry; - if ( $wgDebugFunctionEntry ) { - $this->debug( "Entering {$functionname}" ); - } } /** @@ -124,10 +120,6 @@ class ProfilerXhprof extends Profiler { * @param string $functionname */ public function profileOut( $functionname ) { - global $wgDebugFunctionEntry; - if ( $wgDebugFunctionEntry ) { - $this->debug( "Exiting {$functionname}" ); - } } /**