From 7b4aaeb5cd8a392c829d65be337d634723ae021f Mon Sep 17 00:00:00 2001 From: Robin Gareus Date: Fri, 22 Jan 2021 05:07:38 +0100 Subject: [PATCH] Remove unused code --- libs/ardour/port_manager.cc | 39 ------------------------------------- 1 file changed, 39 deletions(-) diff --git a/libs/ardour/port_manager.cc b/libs/ardour/port_manager.cc index e18be01723..233270df32 100644 --- a/libs/ardour/port_manager.cc +++ b/libs/ardour/port_manager.cc @@ -1620,45 +1620,6 @@ PortManager::fill_midi_port_info_locked () } } -#if 0 - /* now check with backend about which ports are present and pull - * pretty-name if it exists - */ - for (MidiPortInfo::iterator x = midi_port_info.begin(); x != midi_port_info.end(); ++x) { - - if (x->second.backend != _backend->name()) { - /* this port (info) comes from a different - * backend. While there's a reasonable chance that it - * refers to the same physical (or virtual) endpoint, we - * don't allow its use with this backend. - */ - x->second.exists = false; - continue; - } - - PortEngine::PortHandle ph = _backend->get_port_by_name (x->first); - - if (!ph) { - /* port info saved from some condition where this port - * existed, but no longer does (i.e. device unplugged - * at present). We don't remove it from midi_port_info. - */ - x->second.exists = false; - - } else { - x->second.exists = true; - - /* check with backend for pre-existing pretty name */ - - string value = AudioEngine::instance()->get_pretty_name_by_name (x->first); - - if (!value.empty()) { - x->second.pretty_name = value; - } - } - } -#endif - _midi_info_dirty = false; }