Remove ProfilerSimple::getCpuTime
authorOri Livneh <ori@wikimedia.org>
Sun, 29 Dec 2013 10:13:12 +0000 (02:13 -0800)
committerSiebrand Mazeland <s.mazeland@xs4all.nl>
Mon, 30 Dec 2013 12:09:38 +0000 (13:09 +0100)
Deprecated in 1.20, in change I12d1bcb43. I couldn't find any callers.

Change-Id: Ia5a6e02ae3a4bd749c9c7ee9fb32f708b0a3b513

RELEASE-NOTES-1.23
includes/profiler/ProfilerSimple.php

index a634a08..8dd9923 100644 (file)
@@ -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)
index 805c60f..6f3b50c 100644 (file)
@@ -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' );
-               }
-       }
 }