13
0

Remove unused code

This commit is contained in:
Robin Gareus 2021-01-22 05:07:38 +01:00
parent 959f83244e
commit 7b4aaeb5cd
Signed by: rgareus
GPG Key ID: A090BCE02CF57F04

View File

@ -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;
}