mirror of
https://github.com/Ardour/ardour.git
synced 2025-12-10 08:36:32 +01:00
libtemporal: the TempoMap::_points list serves no purpose, so remove it
This commit is contained in:
parent
261c46e0f7
commit
be0a68c610
2 changed files with 0 additions and 22 deletions
|
|
@ -620,10 +620,6 @@ TempoMap::TempoMap (Tempo const & initial_tempo, Meter const & initial_meter)
|
|||
_tempos.push_back (*tp);
|
||||
_meters.push_back (*mp);
|
||||
_bartimes.push_back (*mtp);
|
||||
|
||||
_points.push_back (*tp);
|
||||
_points.push_back (*mp);
|
||||
_points.push_back (*mtp);
|
||||
}
|
||||
|
||||
TempoMap::~TempoMap()
|
||||
|
|
@ -651,32 +647,19 @@ TempoMap::operator= (TempoMap const & other)
|
|||
void
|
||||
TempoMap::copy_points (TempoMap const & other)
|
||||
{
|
||||
std::vector<Point*> p;
|
||||
|
||||
p.reserve (other._meters.size() + other._tempos.size() + other._bartimes.size());
|
||||
|
||||
for (Meters::const_iterator m = other._meters.begin(); m != other._meters.end(); ++m) {
|
||||
MeterPoint* mp = new MeterPoint (*m);
|
||||
_meters.push_back (*mp);
|
||||
p.push_back (mp);
|
||||
}
|
||||
|
||||
for (Tempos::const_iterator t = other._tempos.begin(); t != other._tempos.end(); ++t) {
|
||||
TempoPoint* tp = new TempoPoint (*t);
|
||||
_tempos.push_back (*tp);
|
||||
p.push_back (tp);
|
||||
}
|
||||
|
||||
for (MusicTimes::const_iterator mt = other._bartimes.begin(); mt != other._bartimes.end(); ++mt) {
|
||||
MusicTimePoint* mtp = new MusicTimePoint (*mt);
|
||||
_bartimes.push_back (*mtp);
|
||||
p.push_back (mtp);
|
||||
}
|
||||
|
||||
sort (p.begin(), p.end(), Point::ptr_sclock_comparator());
|
||||
|
||||
for (std::vector<Point*>::iterator pi = p.begin(); pi != p.end(); ++pi) {
|
||||
_points.push_back (**pi);
|
||||
}
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue