Remove old API to keep track of plugin GUI widgets
authorRobin Gareus <robin@gareus.org>
Sat, 1 Jul 2017 21:41:25 +0000 (23:41 +0200)
committerRobin Gareus <robin@gareus.org>
Sat, 1 Jul 2017 21:41:25 +0000 (23:41 +0200)
This was superseded by WindowProxy and the ARDOUR::Processor
[set_]window_proxy() API

gtk2_ardour/processor_box.cc

index 14ba4a8e634b205a534a00237190e96e56ea9092..aa5d6380dfe8d3870e76b21eccaf8a75db6f942d 100644 (file)
@@ -2745,12 +2745,6 @@ ProcessorBox::maybe_add_processor_to_ui_list (boost::weak_ptr<Processor> w)
                wp->set_state (*ui_xml, 0);
        }
 
-       void* existing_ui = p->get_ui ();
-
-       if (existing_ui) {
-               wp->use_window (*(reinterpret_cast<Gtk::Window*>(existing_ui)));
-       }
-
        p->set_window_proxy (wp);
        WM::Manager::instance().register_window (wp);
 }
@@ -4134,7 +4128,6 @@ void
 ProcessorBox::set_processor_ui (boost::shared_ptr<Processor> p, Gtk::Window* w)
 {
        assert (p->window_proxy());
-       p->set_ui (w);
        p->window_proxy()->use_window (*w);
 }