diff options
author | Paul Davis <paul@linuxaudiosystems.com> | 2010-04-23 12:08:42 +0000 |
---|---|---|
committer | Paul Davis <paul@linuxaudiosystems.com> | 2010-04-23 12:08:42 +0000 |
commit | 5d616e51c297ff7555e94e770dc10bd4e17de0cf (patch) | |
tree | 1806de9e538954a2459f3d86ec8698d5ef5a76f6 | |
parent | 7b19392dea6c3f8626e25da9e3082aee53186a33 (diff) |
remove iterator-based AutomationList cut/copy methods, to avoid appearance of code duplication, since they were not used
git-svn-id: svn://localhost/ardour2/branches/2.0-ongoing@6979 d708f5d6-7413-0410-9779-e7cbd77b26cf
-rw-r--r-- | libs/ardour/ardour/automation_event.h | 4 | ||||
-rw-r--r-- | libs/ardour/automation_event.cc | 51 |
2 files changed, 0 insertions, 55 deletions
diff --git a/libs/ardour/ardour/automation_event.h b/libs/ardour/ardour/automation_event.h index 7918845efa..1a3918b3e2 100644 --- a/libs/ardour/ardour/automation_event.h +++ b/libs/ardour/ardour/automation_event.h @@ -115,10 +115,6 @@ class AutomationList : public PBD::StatefulDestructible AutomationList* copy (double, double); void clear (double, double); - AutomationList* cut (iterator, iterator); - AutomationList* copy (iterator, iterator); - void clear (iterator, iterator); - bool paste (AutomationList&, double position, float times); void set_automation_state (AutoState); diff --git a/libs/ardour/automation_event.cc b/libs/ardour/automation_event.cc index 6d7476c08e..107155ca67 100644 --- a/libs/ardour/automation_event.cc +++ b/libs/ardour/automation_event.cc @@ -1070,34 +1070,6 @@ AutomationList::multipoint_eval (double x) } AutomationList* -AutomationList::cut (iterator start, iterator end) -{ - AutomationList* nal = new AutomationList (default_value); - - { - Glib::Mutex::Lock lm (lock); - - for (iterator x = start; x != end; ) { - iterator tmp; - - tmp = x; - ++tmp; - - nal->events.push_back (point_factory (**x)); - events.erase (x); - - x = tmp; - } - - mark_dirty (); - } - - maybe_signal_changed (); - - return nal; -} - -AutomationList* AutomationList::cut_copy_clear (double start, double end, int op) { AutomationList* nal = new AutomationList (default_value); @@ -1191,29 +1163,6 @@ AutomationList::cut_copy_clear (double start, double end, int op) } AutomationList* -AutomationList::copy (iterator start, iterator end) -{ - AutomationList* nal = new AutomationList (default_value); - - { - Glib::Mutex::Lock lm (lock); - - for (iterator x = start; x != end; ) { - iterator tmp; - - tmp = x; - ++tmp; - - nal->events.push_back (point_factory (**x)); - - x = tmp; - } - } - - return nal; -} - -AutomationList* AutomationList::cut (double start, double end) { return cut_copy_clear (start, end, 0); |