about summary refs log tree commit homepage
path: root/lib/clogger.rb
diff options
context:
space:
mode:
authorEric Wong <normalperson@yhbt.net>2011-01-14 13:59:15 -0800
committerEric Wong <normalperson@yhbt.net>2011-01-14 14:08:47 -0800
commite4f738709482d95e49552f7ddfda800e1b4a6baf (patch)
tree5fabcfbbf639b854a1ac03d03894261af08bf3e9 /lib/clogger.rb
parent63521b4c70a1aff89049abf2ba224114e97f62ac (diff)
downloadclogger-e4f738709482d95e49552f7ddfda800e1b4a6baf.tar.gz
We can just make Clogger#respond_to? smarter and forward
everything except :close to the body we're proxying.
Diffstat (limited to 'lib/clogger.rb')
-rw-r--r--lib/clogger.rb9
1 files changed, 0 insertions, 9 deletions
diff --git a/lib/clogger.rb b/lib/clogger.rb
index d0f6fb4..a64ca09 100644
--- a/lib/clogger.rb
+++ b/lib/clogger.rb
@@ -40,15 +40,6 @@ class Clogger
     :request_uri => 7
   }
 
-  # proxy class to avoid clobbering the +to_path+ optimization when
-  # using static files
-  class ToPath < Struct.new(:clogger)
-    def each(&block); clogger.each(&block); end
-    def close; clogger.close; end
-
-    # to_path is defined in Clogger::Pure or the C extension
-  end
-
 private
 
   CGI_ENV = Regexp.new('\A\$(' <<