From: Ori Livneh Date: Sun, 29 Dec 2013 10:13:12 +0000 (-0800) Subject: Remove ProfilerSimple::getCpuTime X-Git-Tag: 1.31.0-rc.0~17462 X-Git-Url: https://git.cyclocoop.org/%242?a=commitdiff_plain;h=1f44669fd091a2ccf93fd67b4663bc4b1e06ae9d;p=lhc%2Fweb%2Fwiklou.git Remove ProfilerSimple::getCpuTime Deprecated in 1.20, in change I12d1bcb43. I couldn't find any callers. Change-Id: Ia5a6e02ae3a4bd749c9c7ee9fb32f708b0a3b513 --- diff --git a/RELEASE-NOTES-1.23 b/RELEASE-NOTES-1.23 index a634a08183..8dd9923c55 100644 --- a/RELEASE-NOTES-1.23 +++ b/RELEASE-NOTES-1.23 @@ -130,6 +130,7 @@ production. - Linker::makeBrokenLinkObj() (deprecated in 1.16) - Linker::makeColouredLinkObj() (deprecated in 1.16) - Linker::makeSizeLinkObj() (deprecated in 1.17) + - ProfilerSimple::getCpuTime (deprecated in 1.20) - Revision::revText() (deprecated in 1.17) - SkinTemplate::jstext() (deprecated in 1.21) - SpecialRevisionDelete::extractBitField() (deprecated in 1.22) diff --git a/includes/profiler/ProfilerSimple.php b/includes/profiler/ProfilerSimple.php index 805c60f4b4..6f3b50c0f1 100644 --- a/includes/profiler/ProfilerSimple.php +++ b/includes/profiler/ProfilerSimple.php @@ -113,21 +113,4 @@ class ProfilerSimple extends Profiler { public function logData() { /* Implement in subclasses */ } - - /** - * Get the actual CPU time or the initial one if $ru is set. - * - * @deprecated in 1.20 - * @return float|null - */ - function getCpuTime( $ru = null ) { - wfDeprecated( __METHOD__, '1.20' ); - - if ( $ru === null ) { - return $this->getTime( 'cpu' ); - } else { - # It theory we should use $ru here, but it always $wgRUstart that is passed here - return $this->getInitialTime( 'cpu' ); - } - } }