From 896a35b1e7f04ec0a528aaa58e94467c303a106b Mon Sep 17 00:00:00 2001 From: Matt Todd Date: Wed, 23 Jan 2008 21:04:57 -0500 Subject: [PATCH] Fixed unnecessary sample code (used for generating test code, but only as an example). --- timeparse/timeparse.rb | 11 ----------- 1 file changed, 11 deletions(-) diff --git a/timeparse/timeparse.rb b/timeparse/timeparse.rb index 1171818..ecc6675 100755 --- a/timeparse/timeparse.rb +++ b/timeparse/timeparse.rb @@ -2,17 +2,6 @@ require 'date' -# colorize -def color(text, color_val) - "#{color_val}#{text}\e[0m" -end -# colors -def green(text); color(text, "\e[32m"); end -def red(text); color(text, "\e[31m"); end -def magenta(text); color(text, "\e[35m"); end -def yellow(text); color(text, "\e[33m"); end -def blue(text); color(text, "\e[34m"); end - # parses the given time value (a string in the format "hh:mm:ss"), respecting # a certain set of rules and modifying the given numbers to honor them, then # returns the fully parsed value back, either as a DateTime object or as a -- 2.11.4.GIT