/*
- 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)
+ : _editor (e)
{
-
}
-
-void
-EditorComponent::connect_to_session (Session* s)
-{
- _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 ();
- }
-}