Profiler: Move debug(Group)() to ProfilerStandard, not used elsewhere
authorChad Horohoe <chadh@wikimedia.org>
Thu, 6 Nov 2014 18:33:17 +0000 (10:33 -0800)
committerBryanDavis <bdavis@wikimedia.org>
Thu, 6 Nov 2014 19:20:28 +0000 (19:20 +0000)
Change-Id: I6066d0e2a80d04808f772396f578521857d6c550

includes/profiler/Profiler.php
includes/profiler/ProfilerStandard.php

index 4629691..3f798bc 100644 (file)
@@ -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 );
-               }
-       }
 }
index ea13bfb..deb2f26 100644 (file)
@@ -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 );
+               }
+       }
 }