summaryrefslogtreecommitdiff
path: root/gtk2_ardour/midi_time_axis.cc
diff options
context:
space:
mode:
authorPaul Davis <paul@linuxaudiosystems.com>2020-02-11 17:40:07 -0700
committerPaul Davis <paul@linuxaudiosystems.com>2020-02-11 17:40:07 -0700
commita48a2b26de8311098b4e309f3d6e3b8c6f68390a (patch)
treeac3d396f9bde00bb861e92338abe53ab067c7ebc /gtk2_ardour/midi_time_axis.cc
parentfac8d84786f420f91b68ce2e444579ea2162cb8d (diff)
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
Diffstat (limited to 'gtk2_ardour/midi_time_axis.cc')
-rw-r--r--gtk2_ardour/midi_time_axis.cc7
1 files changed, 0 insertions, 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<Route> rt)
}
}
- if (gui_property (X_("midnam-custom-device-mode")).empty()) {
- boost::shared_ptr<MIDI::Name::MasterDeviceNames> 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"));