fix meter(s) when mixer-strip is switched to AuxSend
[ardour.git] / gtk2_ardour / port_insert_ui.cc
index 3c495f0e797c0c25255a1d103245c917079196fc..2a982eabc1504e2fd414146114b0a5582addca91 100644 (file)
@@ -176,8 +176,6 @@ PortInsertWindow::PortInsertWindow (ARDOUR::Session* sess, boost::shared_ptr<ARD
        ok_but->signal_clicked().connect (sigc::mem_fun (*this, &PortInsertWindow::accept));
 
        signal_delete_event().connect (sigc::mem_fun (*this, &PortInsertWindow::wm_delete), false);
-
-       pi->DropReferences.connect (going_away_connection, invalidator (*this), boost::bind (&PortInsertWindow::plugin_going_away, this), gui_context());
 }
 
 bool
@@ -187,15 +185,6 @@ PortInsertWindow::wm_delete (GdkEventAny* /*event*/)
        return false;
 }
 
-void
-PortInsertWindow::plugin_going_away ()
-{
-       ENSURE_GUI_THREAD (*this, &PortInsertWindow::plugin_going_away)
-
-       going_away_connection.disconnect ();
-       delete_when_idle (this);
-}
-
 void
 PortInsertWindow::on_map ()
 {