remove unnecessary argument from Playlist::shift()

This commit is contained in:
Paul Davis 2023-10-04 18:48:04 -06:00
parent c3b881327c
commit 62416ee276
2 changed files with 2 additions and 16 deletions

View File

@ -177,7 +177,7 @@ public:
void replace_region (std::shared_ptr<Region> old, std::shared_ptr<Region> newr, timepos_t const & pos);
void split_region (std::shared_ptr<Region>, timepos_t const & position);
void split (timepos_t const & at);
void shift (timepos_t const & at, timecnt_t const & distance, bool move_intersected, bool ignore_music_glue);
void shift (timepos_t const & at, timecnt_t const & distance, bool move_intersected);
void partition (timepos_t const & start, timepos_t const & end, bool cut = false);
void duplicate (std::shared_ptr<Region>, timepos_t & position, float times);
void duplicate (std::shared_ptr<Region>, timepos_t & position, timecnt_t const & gap, float times);

View File

@ -1452,7 +1452,7 @@ Playlist::duplicate_ranges (std::list<TimelineRange>& ranges, float times)
}
void
Playlist::shift (timepos_t const & at, timecnt_t const & distance, bool move_intersected, bool ignore_music_glue)
Playlist::shift (timepos_t const & at, timecnt_t const & distance, bool move_intersected)
{
PBD::Unwinder<bool> uw (_playlist_shift_active, true);
RegionWriteLock rlock (this);
@ -1473,23 +1473,9 @@ Playlist::shift (timepos_t const & at, timecnt_t const & distance, bool move_int
}
}
/* do not move regions glued to music time - that
* has to be done separately.
*/
if (!ignore_music_glue && r->position().time_domain() != Temporal::AudioTime) {
fixup.push_back (r);
continue;
}
rlock.thawlist.add (r);
r->set_position (r->position() + distance);
}
/* XXX: may not be necessary; Region::post_set should do this, I think */
for (auto & r : fixup) {
r->recompute_position_from_time_domain ();
}
}
void