X-Git-Url: https://main.carlh.net/gitweb/?a=blobdiff_plain;f=gtk2_ardour%2Feditor_component.cc;h=e016f5bb5050f255c6fcdcd51112b028bcd6be04;hb=2deba158635501e8f61363ab691882255ce5031c;hp=149ce6717cc03cf0a99008ec71dd6b35cf661086;hpb=8687895abba4209a6de8d8a8fc1bda5996f0d875;p=ardour.git diff --git a/gtk2_ardour/editor_component.cc b/gtk2_ardour/editor_component.cc index 149ce6717c..e016f5bb50 100644 --- a/gtk2_ardour/editor_component.cc +++ b/gtk2_ardour/editor_component.cc @@ -17,33 +17,10 @@ */ -#include "ardour/session.h" #include "editor_component.h" -using namespace std; -using namespace ARDOUR; - EditorComponent::EditorComponent (Editor* e) - : _editor (e), - _session (0) + : _editor (e) { - } -void -EditorComponent::connect_to_session (Session* s) -{ - _session = s; - - _session_connections.push_back (_session->GoingAway.connect (sigc::mem_fun (*this, &EditorComponent::session_going_away))); -} - -void -EditorComponent::session_going_away () -{ - for (list::iterator i = _session_connections.begin(); i != _session_connections.end(); ++i) { - i->disconnect (); - } - - _session = 0; -}