diff options
Diffstat (limited to 'lib')
-rw-r--r-- | lib/mauve/alert.rb | 17 |
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 |