Skip to content

Commit

Permalink
remove dead code in QueueWithPipe
Browse files Browse the repository at this point in the history
  • Loading branch information
slyphon committed May 9, 2012
1 parent 0e18f79 commit 28ce09f
Showing 1 changed file with 0 additions and 11 deletions.
11 changes: 0 additions & 11 deletions lib/zookeeper/common/queue_with_pipe.rb
Expand Up @@ -39,17 +39,6 @@ def pop(non_blocking=false)
rv
end

# after a fork, we construct a new one of these with the state preserved
# but with new locks and a new queue instance
# @private
def clone_after_fork
self.class.new.tap do |qwf|
@queue.instance_variable_get(:@que).each do |i|
qwf.push(i)
end
end
end

# close the queue and causes ShutdownException to be raised on waiting threads
def graceful_close!
@mutex.synchronize do
Expand Down

0 comments on commit 28ce09f

Please sign in to comment.