From 48ea6beaad840778c6c5a527d69bb390640eb27d Mon Sep 17 00:00:00 2001 From: Robin Gareus Date: Fri, 9 Jun 2017 14:47:27 +0200 Subject: Remove Automatable::value_as_string API from libardour Keep Pannable::value_as_string() for now. That is another inconsistency which needs cleaning up. GUI StereoPanner and MonoPanner print the value as they see fit, the panner-plugin provided formatting is not used. --- libs/ardour/amp.cc | 12 ------------ 1 file changed, 12 deletions(-) (limited to 'libs/ardour/amp.cc') diff --git a/libs/ardour/amp.cc b/libs/ardour/amp.cc index d7b9014340..8760c2d426 100644 --- a/libs/ardour/amp.cc +++ b/libs/ardour/amp.cc @@ -411,18 +411,6 @@ Amp::visible() const return true; } -std::string -Amp::value_as_string (boost::shared_ptr ac) const -{ - if (ac == _gain_control) { - char buffer[32]; - snprintf (buffer, sizeof (buffer), _("%.2fdB"), ac->internal_to_user (ac->get_value ())); - return buffer; - } - - return Automatable::value_as_string (ac); -} - /** Sets up the buffer that setup_gain_automation and ::run will use for * gain automationc curves. Must be called before setup_gain_automation, * and must be called with process lock held. -- cgit v1.2.3