summary refs log tree commit homepage
path: root/lib/clogger/pure.rb
diff options
context:
space:
mode:
Diffstat (limited to 'lib/clogger/pure.rb')
-rw-r--r--lib/clogger/pure.rb9
1 files changed, 1 insertions, 8 deletions
diff --git a/lib/clogger/pure.rb b/lib/clogger/pure.rb
index 44f4e62..bb3fc16 100644
--- a/lib/clogger/pure.rb
+++ b/lib/clogger/pure.rb
@@ -82,17 +82,10 @@ class Clogger
 
   def to_path
     rv = @body.to_path
-    # try to avoid unnecessary path lookups with to_io.stat instead of
-    # File.size
-    @body_bytes_sent =
-           @body.respond_to?(:to_io) ? @body.to_io.stat.size : File.size(rv)
+    @body_bytes_sent = File.size(rv)
     rv
   end
 
-  def to_io
-    @body.to_io
-  end
-
 private
 
   def byte_xs(s)