Remove some debug code.
git-svn-id: svn://localhost/ardour2/branches/3.0@4513 d708f5d6-7413-0410-9779-e7cbd77b26cf
This commit is contained in:
parent
81cbf022ae
commit
bd66734a59
@ -626,31 +626,21 @@ AudioEngine::unregister_port (Port& port)
|
|||||||
{
|
{
|
||||||
/* caller must hold process lock */
|
/* caller must hold process lock */
|
||||||
|
|
||||||
cerr << "about to unregister Port xx x" << &port << "\n";
|
|
||||||
|
|
||||||
if (!_running) {
|
if (!_running) {
|
||||||
/* probably happening when the engine has been halted by JACK,
|
/* probably happening when the engine has been halted by JACK,
|
||||||
in which case, there is nothing we can do here.
|
in which case, there is nothing we can do here.
|
||||||
*/
|
*/
|
||||||
cerr << "not running\n";
|
|
||||||
return 0;
|
return 0;
|
||||||
}
|
}
|
||||||
|
|
||||||
{
|
{
|
||||||
cerr << "before getcopy\n";
|
|
||||||
|
|
||||||
RCUWriter<Ports> writer (ports);
|
RCUWriter<Ports> writer (ports);
|
||||||
boost::shared_ptr<Ports> ps = writer.get_copy ();
|
boost::shared_ptr<Ports> ps = writer.get_copy ();
|
||||||
|
|
||||||
cerr << "Ports set size: " << ps.get()->size() << endl;
|
|
||||||
|
|
||||||
for (Ports::iterator i = ps->begin(); i != ps->end(); ++i) {
|
for (Ports::iterator i = ps->begin(); i != ps->end(); ++i) {
|
||||||
cerr << "before delete" << endl;
|
|
||||||
if ((*i) == &port) {
|
if ((*i) == &port) {
|
||||||
cerr << "About to delete " << &port << endl;
|
|
||||||
delete *i;
|
delete *i;
|
||||||
ps->erase (i);
|
ps->erase (i);
|
||||||
cerr << "After erasing ports size: " << ps->size();
|
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
@ -658,7 +648,6 @@ AudioEngine::unregister_port (Port& port)
|
|||||||
/* writer goes out of scope, forces update */
|
/* writer goes out of scope, forces update */
|
||||||
}
|
}
|
||||||
|
|
||||||
cerr << "before remove_connections\n";
|
|
||||||
remove_connections_for (port);
|
remove_connections_for (port);
|
||||||
|
|
||||||
return 0;
|
return 0;
|
||||||
|
Loading…
Reference in New Issue
Block a user