Remove Profiler::setInstance()
authorChad Horohoe <chadh@wikimedia.org>
Tue, 4 Nov 2014 21:12:54 +0000 (13:12 -0800)
committerBryanDavis <bdavis@wikimedia.org>
Tue, 4 Nov 2014 22:01:12 +0000 (22:01 +0000)
This is a weird construction that only existed for dumpHTML.
DumpHTML will no longer require this as of Ia38aa904.

It won't work with future plans to separate profiling & profiling
output

Change-Id: I4d7806596fa233a2b2d1d691c8adfa68724f20f5

includes/profiler/Profiler.php

index 8acc07d..8e5b98a 100644 (file)
@@ -73,14 +73,6 @@ abstract class Profiler {
                return self::$__instance;
        }
 
-       /**
-        * Set the profiler to a specific profiler instance. Mostly for dumpHTML
-        * @param Profiler $p
-        */
-       final public static function setInstance( Profiler $p ) {
-               self::$__instance = $p;
-       }
-
        /**
         * Return whether this a stub profiler
         *