From 70803a8fe1f9ad089c15fc57cde5bdba3414bb09 Mon Sep 17 00:00:00 2001 From: Ori Livneh Date: Sun, 13 Dec 2015 13:57:58 -0800 Subject: [PATCH] Remove wfDebugTimer(), deprecated in 1.25 No remaining usage: https://github.com/search?utf8=%E2%9C%93&q=%40wikimedia+wfDebugTimer&type=Code&ref=searchresults Change-Id: I7b6516f82344f98aaec04bc3af3c208b63169a77 --- includes/GlobalFunctions.php | 21 --------------------- 1 file changed, 21 deletions(-) diff --git a/includes/GlobalFunctions.php b/includes/GlobalFunctions.php index e705dd6ced..1a3ac48576 100644 --- a/includes/GlobalFunctions.php +++ b/includes/GlobalFunctions.php @@ -1051,7 +1051,6 @@ function wfDebug( $text, $dest = 'all', array $context = array() ) { $text = trim( $text ); - // Inline logic from deprecated wfDebugTimer() if ( $wgDebugTimestamps ) { $context['seconds_elapsed'] = sprintf( '%6.4f', @@ -1094,26 +1093,6 @@ function wfIsDebugRawPage() { return $cache; } -/** - * Get microsecond timestamps for debug logs - * - * @deprecated since 1.25 - * @return string - */ -function wfDebugTimer() { - global $wgDebugTimestamps, $wgRequestTime; - - wfDeprecated( __METHOD__, '1.25' ); - - if ( !$wgDebugTimestamps ) { - return ''; - } - - $prefix = sprintf( "%6.4f", microtime( true ) - $wgRequestTime ); - $mem = sprintf( "%5.1fM", ( memory_get_usage( true ) / ( 1024 * 1024 ) ) ); - return "$prefix $mem "; -} - /** * Send a line giving PHP memory usage. * -- 2.20.1