mp4chaps Lua script: don't clutter global environment
[ardour.git] / gtk2_ardour / editor_component.cc
index e78f7804f1b413087c8c072dc9cc21b1979f9b51..e016f5bb5050f255c6fcdcd51112b028bcd6be04 100644 (file)
@@ -1,5 +1,5 @@
 /*
-    Copyright (C) 2009 Paul Davis 
+    Copyright (C) 2009 Paul Davis
 
     This program is free software; you can redistribute it and/or modify
     it under the terms of the GNU General Public License as published by
 
 */
 
-#include "ardour/session.h"
 #include "editor_component.h"
 
-using namespace std;
-using namespace sigc;
-using namespace ARDOUR;
-
 EditorComponent::EditorComponent (Editor* e)
-       : _editor (e),
-         _session (0)
-{
-
-}
-       
-void
-EditorComponent::connect_to_session (Session* s)
+       : _editor (e)
 {
-       _session = s;
-
-       _session_connections.push_back (_session->GoingAway.connect (mem_fun (*this, &EditorComponent::session_going_away)));
 }
 
-void
-EditorComponent::session_going_away ()
-{
-       for (list<connection>::iterator i = _session_connections.begin(); i != _session_connections.end(); ++i) {
-               i->disconnect ();
-       }
-
-       _session = 0;
-}