diff options
author | Paul Davis <paul@linuxaudiosystems.com> | 2016-07-09 12:20:54 -0400 |
---|---|---|
committer | Paul Davis <paul@linuxaudiosystems.com> | 2016-09-27 14:59:30 -0500 |
commit | 47ba20143e06445a9977f4757d816439ea8042d0 (patch) | |
tree | 928d0fbe1a58150ebe576e15547654ed75011dce /libs/ardour/port_manager.cc | |
parent | 3cf92ee52391afb0e4463ab999723a09e5fa08bc (diff) |
remove ControlOnly port flag, since it was essentially unusable
Diffstat (limited to 'libs/ardour/port_manager.cc')
-rw-r--r-- | libs/ardour/port_manager.cc | 19 |
1 files changed, 2 insertions, 17 deletions
diff --git a/libs/ardour/port_manager.cc b/libs/ardour/port_manager.cc index 36b3d1ca46..408e780460 100644 --- a/libs/ardour/port_manager.cc +++ b/libs/ardour/port_manager.cc @@ -273,23 +273,7 @@ PortManager::get_ports (const string& port_name_pattern, DataType type, PortFlag return 0; } - int ret = _backend->get_ports (port_name_pattern, type, flags, s); - if (!ret) { - return ret; - } - - if (!(flags & ControlOnly)) { - /* remove all ports whose name indicates that they are for control only */ - for (vector<string>::iterator si = s.begin(); si != s.end();) { - if (port_is_control_only (*si)) { - si = s.erase (si); - } else { - ++si; - } - } - } - - return 0; + return _backend->get_ports (port_name_pattern, type, flags, s); } void @@ -819,6 +803,7 @@ PortManager::port_is_control_only (std::string const& name) const char * const control_only_ports[] = { X_(".*Ableton Push.*"), + X_(".*FaderPort .*"), }; pattern = "("; |