From ce3c5ed7f0c8c4426b3717c169674edfe7a16556 Mon Sep 17 00:00:00 2001 From: "jocuri%softhome.net" <> Date: Sun, 16 Jan 2005 21:25:46 +0000 Subject: Patch for bug 277618: Move FormatTimeUnit() out of globals.pl; patch by Max K-A , r=wurblzap, a=myk. --- globals.pl | 14 -------------- 1 file changed, 14 deletions(-) (limited to 'globals.pl') diff --git a/globals.pl b/globals.pl index 81b99c8ac..dc0a29570 100644 --- a/globals.pl +++ b/globals.pl @@ -1448,20 +1448,6 @@ sub PerformSubsts { return $str; } -sub FormatTimeUnit { - # Returns a number with 2 digit precision, unless the last digit is a 0 - # then it returns only 1 digit precision - my ($time) = (@_); - - my $newtime = sprintf("%.2f", $time); - - if ($newtime =~ /0\Z/) { - $newtime = sprintf("%.1f", $time); - } - - return $newtime; - -} ############################################################################### -- cgit v1.2.3-24-g4f1b