From 148a9682be3fcf1c83c738287f875c9c629edbd1 Mon Sep 17 00:00:00 2001 From: Robin Gareus Date: Fri, 18 Oct 2019 15:22:33 +0200 Subject: [PATCH] Remove redundant port-owner check Ports owned by Ardour are already filtered out by PortManager::get_known_midi_ports() -> PortManager::fill_midi_port_info_locked() This change is in preparation for allowing to expose Ardour's "Virtual MIDI Keyboard" keyboard (which is owned by Ardour). --- gtk2_ardour/rc_option_editor.cc | 4 ---- 1 file changed, 4 deletions(-) diff --git a/gtk2_ardour/rc_option_editor.cc b/gtk2_ardour/rc_option_editor.cc index e3e41e3b25..60b46f6120 100644 --- a/gtk2_ardour/rc_option_editor.cc +++ b/gtk2_ardour/rc_option_editor.cc @@ -2006,10 +2006,6 @@ MidiPortOptions::refill_midi_ports (bool for_input, Gtk::TreeView& view) for (vector::const_iterator s = ports.begin(); s != ports.end(); ++s) { - if (AudioEngine::instance()->port_is_mine (*s)) { - continue; - } - PortManager::MidiPortInformation mpi (AudioEngine::instance()->midi_port_information (*s)); if (!mpi.exists) {