ProcessorWindowProxy::processor_going_away takes care of deletion
[ardour.git] / gtk2_ardour / send_ui.cc
index 5b7bd10750102c4404a3c1a02570a480e73bb0b6..019307fd16b021b2ca4361edf09223b551a765cf 100644 (file)
@@ -133,19 +133,9 @@ SendUIWindow::SendUIWindow (boost::shared_ptr<Send> s, Session* session)
        ui->show ();
        hpacker.show ();
 
-       s->DropReferences.connect (going_away_connection, invalidator (*this), boost::bind (&SendUIWindow::send_going_away, this), gui_context());
 }
 
 SendUIWindow::~SendUIWindow ()
 {
        delete ui;
 }
-
-void
-SendUIWindow::send_going_away ()
-{
-       ENSURE_GUI_THREAD (*this, &SendUIWindow::send_going_away)
-       going_away_connection.disconnect ();
-       delete_when_idle (this);
-}
-