Method: Redwood::ThreadSet#remove

Defined in:
lib/sup/thread.rb

#remove(mid) ⇒ Object



296
297
298
299
300
301
302
303
304
# File 'lib/sup/thread.rb', line 296

def remove mid
  return unless(c = @messages[mid])

  c.parent.children.delete c if c.parent
  if c.thread
    c.thread.drop c
    c.thread = nil
  end
end