From d4c77064a2e580eddbfa78222d10bc9e95fda8b4 Mon Sep 17 00:00:00 2001 From: Chad Horohoe Date: Tue, 28 Oct 2014 17:20:39 -0700 Subject: [PATCH] Remove back-compat profiling configuration This old style was deprecated like 3 or 4 releases ago Change-Id: Ic61424aacb376151019a08ade214fea655d82a3f --- includes/profiler/Profiler.php | 4 ---- 1 file changed, 4 deletions(-) diff --git a/includes/profiler/Profiler.php b/includes/profiler/Profiler.php index 418b5d48b6..aaf899f8ff 100644 --- a/includes/profiler/Profiler.php +++ b/includes/profiler/Profiler.php @@ -143,14 +143,10 @@ abstract class Profiler { if ( is_array( $wgProfiler ) ) { if ( !isset( $wgProfiler['class'] ) ) { $class = 'ProfilerStub'; - } elseif ( $wgProfiler['class'] === 'Profiler' ) { - $class = 'ProfilerStub'; // b/c; don't explode } else { $class = $wgProfiler['class']; } self::$__instance = new $class( $wgProfiler ); - } elseif ( $wgProfiler instanceof Profiler ) { - self::$__instance = $wgProfiler; // back-compat } else { self::$__instance = new ProfilerStub( array() ); } -- 2.20.1