From 45805ece02f74830959bf86359971d46ef7c3028 Mon Sep 17 00:00:00 2001 From: Robin Gareus Date: Mon, 11 Mar 2019 01:48:40 +0100 Subject: [PATCH] Remove unused value parameter printers --- gtk2_ardour/generic_pluginui.cc | 26 -------------------------- gtk2_ardour/plugin_ui.h | 5 ----- 2 files changed, 31 deletions(-) diff --git a/gtk2_ardour/generic_pluginui.cc b/gtk2_ardour/generic_pluginui.cc index 923c8891e0..c13224e5a2 100644 --- a/gtk2_ardour/generic_pluginui.cc +++ b/gtk2_ardour/generic_pluginui.cc @@ -902,32 +902,6 @@ GenericPluginUI::automation_state_changed (ControlUI* cui) } } -bool -GenericPluginUI::integer_printer (char buf[32], Adjustment &adj, ControlUI* cui) -{ - float const v = cui->control->interface_to_internal(adj.get_value ()); - const std::string& str = ARDOUR::value_as_string(cui->control->desc(), Variant(v)); - const size_t len = str.copy(buf, 31); - buf[len] = '\0'; - return true; -} - -bool -GenericPluginUI::midinote_printer (char buf[32], Adjustment &adj, ControlUI* cui) -{ - float const v = cui->control->interface_to_internal(adj.get_value ()); - const std::string& str = ARDOUR::value_as_string(cui->control->desc(), Variant(v)); - const size_t len = str.copy(buf, 31); - buf[len] = '\0'; - return true; -} - -void -GenericPluginUI::print_parameter (char *buf, uint32_t len, uint32_t param) -{ - plugin->print_parameter (param, buf, len); -} - /** Build a ControlUI for a parameter/property. * Note that mcontrol may be NULL for outputs. */ diff --git a/gtk2_ardour/plugin_ui.h b/gtk2_ardour/plugin_ui.h index 708cb2c593..4d0213d1f2 100644 --- a/gtk2_ardour/plugin_ui.h +++ b/gtk2_ardour/plugin_ui.h @@ -297,11 +297,6 @@ private: void knob_size_request(Gtk::Requisition* req, ControlUI* cui); - /* XXX: remove */ - void print_parameter (char *buf, uint32_t len, uint32_t param); - bool integer_printer (char* buf, Gtk::Adjustment &, ControlUI *); - bool midinote_printer(char* buf, Gtk::Adjustment &, ControlUI *); - typedef std::map FilePathControls; FilePathControls _filepath_controls; void set_path_property (const ARDOUR::ParameterDescriptor& desc,