diff options
author | Robin Gareus <robin@gareus.org> | 2017-06-09 14:47:27 +0200 |
---|---|---|
committer | Robin Gareus <robin@gareus.org> | 2017-06-09 16:54:21 +0200 |
commit | 48ea6beaad840778c6c5a527d69bb390640eb27d (patch) | |
tree | ee29e9514c4aa60f9054d90e5a69a059e7819f99 | |
parent | 99b064274f429be8b78090ef06c7693e8bb29707 (diff) |
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.
-rw-r--r-- | libs/ardour/amp.cc | 12 | ||||
-rw-r--r-- | libs/ardour/ardour/amp.h | 2 | ||||
-rw-r--r-- | libs/ardour/ardour/automatable.h | 1 | ||||
-rw-r--r-- | libs/ardour/ardour/send.h | 2 | ||||
-rw-r--r-- | libs/ardour/automatable.cc | 6 | ||||
-rw-r--r-- | libs/ardour/send.cc | 6 |
6 files changed, 0 insertions, 29 deletions
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<const AutomationControl> 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. diff --git a/libs/ardour/ardour/amp.h b/libs/ardour/ardour/amp.h index 820e2a85e1..d07f860599 100644 --- a/libs/ardour/ardour/amp.h +++ b/libs/ardour/ardour/amp.h @@ -79,8 +79,6 @@ public: return _gain_control; } - std::string value_as_string (boost::shared_ptr<const AutomationControl>) const; - private: bool _denormal_protection; bool _apply_gain; diff --git a/libs/ardour/ardour/automatable.h b/libs/ardour/ardour/automatable.h index 4e7c11d51c..f23948412f 100644 --- a/libs/ardour/ardour/automatable.h +++ b/libs/ardour/ardour/automatable.h @@ -87,7 +87,6 @@ public: virtual void transport_stopped (framepos_t now); virtual std::string describe_parameter(Evoral::Parameter param); - virtual std::string value_as_string (boost::shared_ptr<const AutomationControl>) const; AutoState get_parameter_automation_state (Evoral::Parameter param); virtual void set_parameter_automation_state (Evoral::Parameter param, AutoState); diff --git a/libs/ardour/ardour/send.h b/libs/ardour/ardour/send.h index f70f09b6ea..002397f0cd 100644 --- a/libs/ardour/ardour/send.h +++ b/libs/ardour/ardour/send.h @@ -77,8 +77,6 @@ class LIBARDOUR_API Send : public Delivery bool set_name (const std::string& str); - std::string value_as_string (boost::shared_ptr<const AutomationControl>) const; - static uint32_t how_many_sends(); static std::string name_and_id_new_send (Session&, Delivery::Role r, uint32_t&, bool); diff --git a/libs/ardour/automatable.cc b/libs/ardour/automatable.cc index 462f4f2974..d10fafdeb1 100644 --- a/libs/ardour/automatable.cc +++ b/libs/ardour/automatable.cc @@ -542,12 +542,6 @@ Automatable::clear_controls () ControlSet::clear_controls (); } -string -Automatable::value_as_string (boost::shared_ptr<const AutomationControl> ac) const -{ - return ARDOUR::value_as_string(ac->desc(), ac->get_value()); -} - bool Automatable::find_next_event (double now, double end, Evoral::ControlEvent& next_event, bool only_active) const { diff --git a/libs/ardour/send.cc b/libs/ardour/send.cc index 13d8056d6d..b9b3efa8b1 100644 --- a/libs/ardour/send.cc +++ b/libs/ardour/send.cc @@ -404,12 +404,6 @@ Send::display_to_user () const return true; } -string -Send::value_as_string (boost::shared_ptr<const AutomationControl> ac) const -{ - return _amp->value_as_string (ac); -} - void Send::snd_output_changed (IOChange change, void* /*src*/) { |