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.
This commit is contained in:
Robin Gareus 2017-06-09 14:47:27 +02:00
parent 99b064274f
commit 48ea6beaad
6 changed files with 0 additions and 29 deletions

View file

@ -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.

View file

@ -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;

View file

@ -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);

View file

@ -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);

View file

@ -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
{

View file

@ -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*/)
{