lib/httpx/selector.rb in httpx-0.0.1 vs lib/httpx/selector.rb in httpx-0.0.2
- old
+ new
@@ -46,13 +46,9 @@
@lock = Mutex.new
@__r__, @__w__ = IO.pipe
@closed = false
end
- def empty?
- @readers.empty? && @writers.empty?
- end
-
# deregisters +io+ from selectables.
def deregister(io)
@lock.synchronize do
rmonitor = @readers.delete(io)
wmonitor = @writers.delete(io)