about summary refs log tree commit homepage
path: root/lib/rainbows/rev/client.rb
diff options
context:
space:
mode:
Diffstat (limited to 'lib/rainbows/rev/client.rb')
-rw-r--r--lib/rainbows/rev/client.rb13
1 files changed, 0 insertions, 13 deletions
diff --git a/lib/rainbows/rev/client.rb b/lib/rainbows/rev/client.rb
index ababe50..68b3847 100644
--- a/lib/rainbows/rev/client.rb
+++ b/lib/rainbows/rev/client.rb
@@ -117,19 +117,6 @@ module Rainbows
         end while true
       end
 
-      if IO.method_defined?(:sendfile_nonblock)
-        def rev_sendfile(body)
-          body.pos += @_io.sendfile_nonblock(body, body.pos, 0x10000)
-          rescue Errno::EAGAIN
-          ensure
-            enable_write_watcher
-        end
-      else
-        def rev_sendfile(body)
-          write(body.sysread(CHUNK_SIZE))
-        end
-      end
-
       def on_write_complete
         if body = @deferred_bodies[0]
           # no socket or pipes, body must be a regular file to continue here