remove AutomationList::paste since it is no longer required (just use ControlList::paste())

This commit is contained in:
Paul Davis 2020-12-07 19:16:05 -07:00
parent 779a04b0ce
commit d995a07011
2 changed files with 0 additions and 27 deletions

View file

@ -87,7 +87,6 @@ public:
AutomationList& operator= (const AutomationList&);
void thaw ();
bool paste (const ControlList&, timepos_t const &, BeatsSamplesConverter const&);
void set_automation_state (AutoState);
AutoState automation_state() const;

View file

@ -317,32 +317,6 @@ AutomationList::thaw ()
}
}
bool
AutomationList::paste (const ControlList& alist, timepos_t const & pos, BeatsSamplesConverter const& bfc)
{
if (time_domain() == alist.time_domain()) {
return ControlList::paste (alist, pos);
}
/* time domains differ - need to map the time of all points in alist
* into our time domain
*/
const bool to_sample = (time_domain() == Temporal::AudioTime);
ControlList cl (alist);
cl.clear ();
for (const_iterator i = alist.begin ();i != alist.end (); ++i) {
if (to_sample) {
cl.fast_simple_add (timepos_t ((*i)->when.samples()), (*i)->value);
} else {
cl.fast_simple_add (timepos_t ((*i)->when.beats ()), (*i)->value);
}
}
return ControlList::paste (cl, pos);
}
Command*
AutomationList::memento_command (XMLNode* before, XMLNode* after)
{