diff options
author | David Robillard <d@drobilla.net> | 2018-12-27 11:36:09 -0500 |
---|---|---|
committer | David Robillard <d@drobilla.net> | 2018-12-27 11:36:09 -0500 |
commit | 8311df91cc212adf3220acfcb50ab63414fe9dd6 (patch) | |
tree | 33cff10eabf06ba7f53828d77b742b8d6e5bbb37 /src | |
parent | 566d380c32d3211517263e221d0903ca7533848b (diff) | |
download | jalv-8311df91cc212adf3220acfcb50ab63414fe9dd6.tar.gz jalv-8311df91cc212adf3220acfcb50ab63414fe9dd6.tar.bz2 jalv-8311df91cc212adf3220acfcb50ab63414fe9dd6.zip |
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.
Diffstat (limited to 'src')
-rw-r--r-- | src/jalv_console.c | 8 | ||||
-rw-r--r-- | src/jalv_gtkmm2.cpp | 13 | ||||
-rw-r--r-- | src/jalv_internal.h | 3 | ||||
-rw-r--r-- | src/jalv_qt.cpp | 12 |
4 files changed, 0 insertions, 36 deletions
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, |