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
This commit is contained in:
Paul Davis 2010-04-23 12:08:42 +00:00
parent 7b19392dea
commit 5d616e51c2
2 changed files with 0 additions and 55 deletions

View file

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

View file

@ -1069,34 +1069,6 @@ AutomationList::multipoint_eval (double x)
return (*range.first)->value;
}
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)
{
@ -1190,29 +1162,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)
{