From 8167ce1890a350bf9c84373273185f76957684a0 Mon Sep 17 00:00:00 2001 From: Andrea Campi Date: Fri, 29 Mar 2013 22:54:19 +0100 Subject: [PATCH] Remove an obsolete helper class. --- lib/varnish/utils.rb | 1 - lib/varnish/utils/timer.rb | 20 -------------------- 2 files changed, 21 deletions(-) delete mode 100644 lib/varnish/utils.rb delete mode 100644 lib/varnish/utils/timer.rb diff --git a/lib/varnish/utils.rb b/lib/varnish/utils.rb deleted file mode 100644 index 6bb8065..0000000 --- a/lib/varnish/utils.rb +++ /dev/null @@ -1 +0,0 @@ -require 'varnish/utils/timer' diff --git a/lib/varnish/utils/timer.rb b/lib/varnish/utils/timer.rb deleted file mode 100644 index 9c04508..0000000 --- a/lib/varnish/utils/timer.rb +++ /dev/null @@ -1,20 +0,0 @@ -module Varnish - module Utils - module Timer - def timer_init - @count = 0 - @time = 0 - @interval = 40000 - end - - def timer_count - @time = Time.now if @count == 0 - @count += 1 - if (@count % @interval) == 0 - puts "Got #{@count} calls in #{(Time.now - @time).to_f}s" - @time = Time.now - end - end - end - end -end