summaryrefslogtreecommitdiff
path: root/libs/evoral/src/ControlSet.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'libs/evoral/src/ControlSet.cpp')
-rw-r--r--libs/evoral/src/ControlSet.cpp32
1 files changed, 0 insertions, 32 deletions
diff --git a/libs/evoral/src/ControlSet.cpp b/libs/evoral/src/ControlSet.cpp
index f24c410d73..cc8d7c60a7 100644
--- a/libs/evoral/src/ControlSet.cpp
+++ b/libs/evoral/src/ControlSet.cpp
@@ -87,38 +87,6 @@ ControlSet::control (const Parameter& parameter, bool create_if_missing)
}
}
-bool
-ControlSet::find_next_event (double now, double end, ControlEvent& next_event) const
-{
- Controls::const_iterator li;
-
- next_event.when = std::numeric_limits<double>::max();
-
- for (li = _controls.begin(); li != _controls.end(); ++li) {
- ControlList::const_iterator i;
- boost::shared_ptr<const ControlList> alist (li->second->list());
- ControlEvent cp (now, 0.0f);
- if (!alist) {
- continue;
- }
-
- for (i = lower_bound (alist->begin(), alist->end(), &cp, ControlList::time_comparator);
- i != alist->end() && (*i)->when < end; ++i) {
- if ((*i)->when > now) {
- break;
- }
- }
-
- if (i != alist->end() && (*i)->when < end) {
- if ((*i)->when < next_event.when) {
- next_event.when = (*i)->when;
- }
- }
- }
-
- return next_event.when != std::numeric_limits<double>::max();
-}
-
void
ControlSet::clear_controls ()
{