summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--libs/evoral/evoral/ControlList.hpp2
-rw-r--r--libs/evoral/src/ControlList.cpp8
2 files changed, 0 insertions, 10 deletions
diff --git a/libs/evoral/evoral/ControlList.hpp b/libs/evoral/evoral/ControlList.hpp
index 3c4b192159..e2609ad681 100644
--- a/libs/evoral/evoral/ControlList.hpp
+++ b/libs/evoral/evoral/ControlList.hpp
@@ -119,8 +119,6 @@ public:
void slide (iterator before, double distance);
void shift (double before, double distance);
- virtual bool clamp_value (double& /*when*/, double& /*value*/) const { return true; }
-
virtual void add (double when, double value, bool with_guards=true, bool with_default=true);
virtual void editor_add (double when, double value);
diff --git a/libs/evoral/src/ControlList.cpp b/libs/evoral/src/ControlList.cpp
index 2113755874..b1f10410ad 100644
--- a/libs/evoral/src/ControlList.cpp
+++ b/libs/evoral/src/ControlList.cpp
@@ -453,10 +453,6 @@ ControlList::editor_add (double when, double value)
/* this is for making changes from a graphical line editor
*/
- if (!clamp_value (when, value)) {
- return;
- }
-
if (_events.empty()) {
/* as long as the point we're adding is not at zero,
@@ -487,10 +483,6 @@ ControlList::add (double when, double value, bool with_guards, bool with_default
control surface (GUI, MIDI, OSC etc)
*/
- if (!clamp_value (when, value)) {
- return;
- }
-
DEBUG_TRACE (DEBUG::ControlList, string_compose ("@%1 add %2 at %3 w/erase = %4 (new ? %6) at end ? %5\n",
this, value, when, _in_write_pass, (most_recent_insert_iterator == _events.end()), new_write_pass));
{