mirror of
https://github.com/Ardour/ardour.git
synced 2026-01-05 05:05:43 +01:00
[Summary] Removed redundant actions. This will be handled during route destruction
This commit is contained in:
parent
0969e46e4a
commit
fc6429cad4
1 changed files with 0 additions and 11 deletions
|
|
@ -3171,17 +3171,6 @@ Session::remove_routes (boost::shared_ptr<RouteList> routes_to_remove)
|
|||
*/
|
||||
for (RouteList::iterator iter = routes_to_remove->begin(); iter != routes_to_remove->end(); ++iter) {
|
||||
|
||||
for (size_t i = 0; i < (*iter)->input()->ports().num_ports(); ++i) {
|
||||
_engine.unregister_port((*iter)->input()->ports().port(i));
|
||||
PortEngine::PortHandle handle = (*iter)->input()->ports().port(i)->port_handle();
|
||||
_engine.current_backend()->unregister_port(handle);
|
||||
}
|
||||
|
||||
for (size_t i = 0; i < (*iter)->output()->ports().num_ports(); ++i) {
|
||||
_engine.unregister_port((*iter)->output()->ports().port(i));
|
||||
PortEngine::PortHandle handle = (*iter)->output()->ports().port(i)->port_handle();
|
||||
_engine.current_backend()->unregister_port(handle);
|
||||
}
|
||||
(*iter)->drop_references ();
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue