summaryrefslogtreecommitdiff
path: root/libs/ardour/amp.cc
diff options
context:
space:
mode:
authorRobin Gareus <robin@gareus.org>2017-06-09 14:47:27 +0200
committerRobin Gareus <robin@gareus.org>2017-06-09 16:54:21 +0200
commit48ea6beaad840778c6c5a527d69bb390640eb27d (patch)
treeee29e9514c4aa60f9054d90e5a69a059e7819f99 /libs/ardour/amp.cc
parent99b064274f429be8b78090ef06c7693e8bb29707 (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.
Diffstat (limited to 'libs/ardour/amp.cc')
-rw-r--r--libs/ardour/amp.cc12
1 files changed, 0 insertions, 12 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.