From a48a2b26de8311098b4e309f3d6e3b8c6f68390a Mon Sep 17 00:00:00 2001 From: Paul Davis Date: Tue, 11 Feb 2020 17:40:07 -0700 Subject: [PATCH] remove unnecessary code There's no reason to store the first device mode in a gui property if the model is also not a gui property --- gtk2_ardour/midi_time_axis.cc | 7 ------- 1 file changed, 7 deletions(-) diff --git a/gtk2_ardour/midi_time_axis.cc b/gtk2_ardour/midi_time_axis.cc index c06cf4a352..17036523c0 100644 --- a/gtk2_ardour/midi_time_axis.cc +++ b/gtk2_ardour/midi_time_axis.cc @@ -255,13 +255,6 @@ MidiTimeAxisView::set_route (boost::shared_ptr rt) } } - if (gui_property (X_("midnam-custom-device-mode")).empty()) { - boost::shared_ptr device_names = get_device_names(); - if (device_names) { - set_gui_property (X_("midnam-custom-device-mode"), *device_names->custom_device_mode_names().begin()); - } - } - ArdourWidgets::set_tooltip (_midnam_model_selector, _("External MIDI Device")); ArdourWidgets::set_tooltip (_midnam_custom_device_mode_selector, _("External Device Mode"));