From 9d60197ffb42d33554db7f604ac05ab9e1ec342f Mon Sep 17 00:00:00 2001 From: Paul Davis Date: Tue, 11 Feb 2020 14:16:47 -0700 Subject: [PATCH] remove unnecessary code If there's no GUI property for the MIDNAM model name, and the plugin has no MIDNAM, there's no reason to set the property to the default It will pick up the default ("Generic") during update_patch_selector() calling into model_changed --- 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 5cb8138c16..c06cf4a352 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-model-name")).empty()) { - boost::shared_ptr pi = boost::dynamic_pointer_cast (_route->the_instrument ()); - if (!pi || !pi->plugin ()->has_midnam ()) { - set_gui_property (X_("midnam-model-name"), DEFAULT_MIDNAM_MODEL); - } - } - if (gui_property (X_("midnam-custom-device-mode")).empty()) { boost::shared_ptr device_names = get_device_names(); if (device_names) {