From dfd841624f6e371d07876e2437ca61da1b9836f9 Mon Sep 17 00:00:00 2001 From: Patrick J Cherry Date: Thu, 29 Nov 2012 18:42:37 +0000 Subject: Removed unused method --- lib/mauve/alert.rb | 17 ----------------- 1 file changed, 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 -- cgit v1.2.1