From 0771717dd53a8495683821963cb9189679a64a24 Mon Sep 17 00:00:00 2001 From: Robin Gareus Date: Thu, 9 Jan 2020 18:20:20 +0100 Subject: [PATCH] Remove unused variable --- gtk2_ardour/lv2_plugin_ui.cc | 4 +--- gtk2_ardour/lv2_plugin_ui.h | 1 - 2 files changed, 1 insertion(+), 4 deletions(-) diff --git a/gtk2_ardour/lv2_plugin_ui.cc b/gtk2_ardour/lv2_plugin_ui.cc index 7f37b8c8ca..1e2de1e7b4 100644 --- a/gtk2_ardour/lv2_plugin_ui.cc +++ b/gtk2_ardour/lv2_plugin_ui.cc @@ -552,9 +552,7 @@ LV2PluginUI::resizable() int LV2PluginUI::package(Gtk::Window& win) { - if (_external_ui_ptr) { - _win_ptr = &win; - } else { + if (!_external_ui_ptr) { /* forward configure events to plugin window */ win.signal_configure_event().connect( sigc::mem_fun(*this, &LV2PluginUI::configure_handler)); diff --git a/gtk2_ardour/lv2_plugin_ui.h b/gtk2_ardour/lv2_plugin_ui.h index 4259398a43..811fcdd14c 100644 --- a/gtk2_ardour/lv2_plugin_ui.h +++ b/gtk2_ardour/lv2_plugin_ui.h @@ -96,7 +96,6 @@ private: LV2_Feature _lv2ui_request_feature; struct lv2_external_ui* _external_ui_ptr; LV2_Feature _parent_feature; - Gtk::Window* _win_ptr; void* _inst; typedef std::set Updates; Updates _updates;