lib/async/http/body/fixed.rb in async-http-0.40.1 vs lib/async/http/body/fixed.rb in async-http-0.40.2

- old
+ new

@@ -65,37 +65,8 @@ def inspect "\#<#{self.class} length=#{@length} remaining=#{@remaining}>" end end - - class Remainder < Readable - def initialize(stream) - @stream = stream - end - - def empty? - @stream.closed? - end - - def close(error = nil) - # We can't really do anything in this case except close the connection. - @stream.close - - super - end - - def read - @stream.read_partial - end - - def join - read - end - - def inspect - "\#<#{self.class} #{@stream.closed? ? 'closed' : 'open'}>" - end - end end end end