aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorPatrick J Cherry <patrick@bytemark.co.uk>2012-11-29 18:42:37 +0000
committerPatrick J Cherry <patrick@bytemark.co.uk>2012-11-29 18:42:37 +0000
commitdfd841624f6e371d07876e2437ca61da1b9836f9 (patch)
treea0aa205a66550a4016379ec1e2496c41f72d4ae2
parent17120a9adf733185b5fc08cccf6644a09c995330 (diff)
Removed unused method
-rw-r--r--lib/mauve/alert.rb17
1 files changed, 0 insertions, 17 deletions
diff --git a/lib/mauve/alert.rb b/lib/mauve/alert.rb
index 5d5d997..2a798e2 100644
--- a/lib/mauve/alert.rb
+++ b/lib/mauve/alert.rb
@@ -136,23 +136,6 @@ module Mauve
@logger ||= self.class.logger
end
- # @deprecated Not sure if this is used any more.
- #
- # @param [Integer] Seconds
- #
- # @return [String]
- def time_relative(secs)
- secs = secs.to_i.abs
- case secs
- when 0..59 then "just now"
- when 60..3599 then "#{secs/60}m ago"
- when 3600..86399 then "#{secs/3600}h ago"
- else
- days = secs/86400
- days == 1 ? "yesterday" : "#{secs/86400} days ago"
- end
- end
-
#
# @return [Mauve::AlertGroup] The first matching AlertGroup for this alert
def alert_group