From: Chad Horohoe Date: Tue, 4 Nov 2014 21:12:54 +0000 (-0800) Subject: Remove Profiler::setInstance() X-Git-Tag: 1.31.0-rc.0~13387^2 X-Git-Url: http://git.cyclocoop.org/%22.htmlspecialchars%28%24url_syndic%29.%22?a=commitdiff_plain;h=bb025faa199c6ccbc53aaf26d7dc21da823107b0;p=lhc%2Fweb%2Fwiklou.git Remove Profiler::setInstance() 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 --- diff --git a/includes/profiler/Profiler.php b/includes/profiler/Profiler.php index 8acc07d1f9..8e5b98aefc 100644 --- a/includes/profiler/Profiler.php +++ b/includes/profiler/Profiler.php @@ -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 *