From 8311df91cc212adf3220acfcb50ab63414fe9dd6 Mon Sep 17 00:00:00 2001 From: David Robillard Date: Thu, 27 Dec 2018 11:36:09 -0500 Subject: Remove unused jalv_ui_resize() This function was added many years ago to support the UI resize feature, but has been dead code for a long time and nobody seems to have noticed, so it can't be that important. --- src/jalv_console.c | 8 -------- src/jalv_gtkmm2.cpp | 13 ------------- src/jalv_internal.h | 3 --- src/jalv_qt.cpp | 12 ------------ 4 files changed, 36 deletions(-) (limited to 'src') diff --git a/src/jalv_console.c b/src/jalv_console.c index 07e97c6..2a9e9b1 100644 --- a/src/jalv_console.c +++ b/src/jalv_console.c @@ -49,14 +49,6 @@ print_usage(const char* name, bool error) return error ? 1 : 0; } -int -jalv_ui_resize(ZIX_UNUSED Jalv* jalv, - ZIX_UNUSED int width, - ZIX_UNUSED int height) -{ - return height; -} - void jalv_ui_port_event(ZIX_UNUSED Jalv* jalv, ZIX_UNUSED uint32_t port_index, diff --git a/src/jalv_gtkmm2.cpp b/src/jalv_gtkmm2.cpp index ae0ac96..7e70a07 100644 --- a/src/jalv_gtkmm2.cpp +++ b/src/jalv_gtkmm2.cpp @@ -35,19 +35,6 @@ jalv_native_ui_type(void) return "http://lv2plug.in/ns/extensions/ui#GtkUI"; } -int -jalv_ui_resize(Jalv* jalv, int width, int height) -{ - if (jalv->ui_instance) { - GtkWidget* widget = GTK_WIDGET( - suil_instance_get_widget(jalv->ui_instance)); - if (widget) { - gtk_widget_set_size_request(GTK_WIDGET(widget), width, height); - } - } - return 0; -} - void jalv_ui_port_event(Jalv* jalv, uint32_t port_index, diff --git a/src/jalv_internal.h b/src/jalv_internal.h index 9ee880c..d607613 100644 --- a/src/jalv_internal.h +++ b/src/jalv_internal.h @@ -442,9 +442,6 @@ jalv_run(Jalv* jalv, uint32_t nframes); bool jalv_update(Jalv* jalv); -int -jalv_ui_resize(Jalv* jalv, int width, int height); - typedef int (*PresetSink)(Jalv* jalv, const LilvNode* node, const LilvNode* title, diff --git a/src/jalv_qt.cpp b/src/jalv_qt.cpp index 582361f..e9d2121 100644 --- a/src/jalv_qt.cpp +++ b/src/jalv_qt.cpp @@ -343,18 +343,6 @@ jalv_native_ui_type(void) #endif } -int -jalv_ui_resize(Jalv* jalv, int width, int height) -{ - if (jalv->ui_instance && width > 0 && height > 0) { - QWidget* widget = (QWidget*)suil_instance_get_widget(jalv->ui_instance); - if (widget) { - widget->resize(width, height); - } - } - return 0; -} - void jalv_ui_port_event(Jalv* jalv, uint32_t port_index, -- cgit v1.2.1