enough with umpteen "i18n.h" files. Consolidate on pbd/i18n.h
[ardour.git] / gtk2_ardour / port_insert_ui.cc
index 3c495f0e797c0c25255a1d103245c917079196fc..0bf86532995e0d4f15c205b51e29694cdb76bce7 100644 (file)
@@ -28,9 +28,8 @@
 #include "ardour/session.h"
 
 #include "port_insert_ui.h"
-#include "utils.h"
 #include "gui_thread.h"
-#include "i18n.h"
+#include "pbd/i18n.h"
 
 using namespace ARDOUR;
 using namespace Gtk;
@@ -176,8 +175,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 +184,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 ()
 {