From 1aa7a725080f634466ed748a293d6105dd4b61c6 Mon Sep 17 00:00:00 2001 From: Chad Horohoe Date: Thu, 6 Nov 2014 10:33:17 -0800 Subject: [PATCH] Profiler: Move debug(Group)() to ProfilerStandard, not used elsewhere Change-Id: I6066d0e2a80d04808f772396f578521857d6c550 --- includes/profiler/Profiler.php | 23 ----------------------- includes/profiler/ProfilerStandard.php | 23 +++++++++++++++++++++++ 2 files changed, 23 insertions(+), 23 deletions(-) diff --git a/includes/profiler/Profiler.php b/includes/profiler/Profiler.php index 46296917cc..3f798bcd08 100644 --- a/includes/profiler/Profiler.php +++ b/includes/profiler/Profiler.php @@ -226,27 +226,4 @@ abstract class Profiler { } } } - - /** - * Add an entry in the debug log file - * - * @param string $s String to output - */ - protected function debug( $s ) { - if ( function_exists( 'wfDebug' ) ) { - wfDebug( $s ); - } - } - - /** - * Add an entry in the debug log group - * - * @param string $group Group to send the message to - * @param string $s String to output - */ - protected function debugGroup( $group, $s ) { - if ( function_exists( 'wfDebugLog' ) ) { - wfDebugLog( $group, $s ); - } - } } diff --git a/includes/profiler/ProfilerStandard.php b/includes/profiler/ProfilerStandard.php index ea13bfb748..deb2f2600c 100644 --- a/includes/profiler/ProfilerStandard.php +++ b/includes/profiler/ProfilerStandard.php @@ -541,4 +541,27 @@ class ProfilerStandard extends Profiler { } return null; } + + /** + * Add an entry in the debug log file + * + * @param string $s String to output + */ + protected function debug( $s ) { + if ( function_exists( 'wfDebug' ) ) { + wfDebug( $s ); + } + } + + /** + * Add an entry in the debug log group + * + * @param string $group Group to send the message to + * @param string $s String to output + */ + protected function debugGroup( $group, $s ) { + if ( function_exists( 'wfDebugLog' ) ) { + wfDebugLog( $group, $s ); + } + } } -- 2.20.1