ProcessorWindowProxy::processor_going_away takes care of deletion
[ardour.git] / gtk2_ardour / send_ui.cc
index 54663dbe0a0cabddae00c65bd2fd4db5e0fb3e94..90ee52b3ad6fee7a84d919e5ba74c6c274c12703 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);
-}
-