Remove unused Region::remove_dependents API

This commit is contained in:
Robin Gareus 2023-05-28 01:52:42 +02:00
parent 0918f7fc09
commit 39ac0c5e19
Signed by: rgareus
GPG Key ID: A090BCE02CF57F04
4 changed files with 0 additions and 25 deletions

View File

@ -87,10 +87,6 @@ public:
std::shared_ptr<Region> combine (const RegionList&, std::shared_ptr<Track>);
void uncombine (std::shared_ptr<Region>);
protected:
void remove_dependents (std::shared_ptr<Region> region);
void region_going_away (std::weak_ptr<Region> region);
private:
void dump () const;

View File

@ -426,7 +426,6 @@ protected:
void ripple_locked (timepos_t const & at, timecnt_t const & distance, RegionList *exclude);
void ripple_unlocked (timepos_t const & at, timecnt_t const & distance, RegionList *exclude, ThawList& thawlist, bool notify = true);
virtual void remove_dependents (std::shared_ptr<Region> /*region*/) {}
virtual void region_going_away (std::weak_ptr<Region> /*region*/) {}
virtual XMLNode& state (bool) const;

View File

@ -108,20 +108,6 @@ struct EventsSortByTimeAndType {
}
};
void
MidiPlaylist::remove_dependents (std::shared_ptr<Region> region)
{
}
void
MidiPlaylist::region_going_away (std::weak_ptr<Region> region)
{
std::shared_ptr<Region> r = region.lock();
if (r) {
remove_dependents(r);
}
}
int
MidiPlaylist::set_state (const XMLNode& node, int version)
{

View File

@ -598,7 +598,6 @@ Playlist::flush_notifications (bool from_undo)
std::shared_ptr<RegionList> rl (new RegionList);
for (s = pending_removes.begin (); s != pending_removes.end (); ++s) {
crossfade_ranges.push_back ((*s)->range ());
remove_dependents (*s);
RegionRemoved (std::weak_ptr<Region> (*s)); /* EMIT SIGNAL */
rl->push_back (*s);
}
@ -824,7 +823,6 @@ Playlist::remove_region_internal (std::shared_ptr<Region> region, ThawList& thaw
if (!holding_state ()) {
relayer ();
remove_dependents (region);
}
notify_region_removed (region);
@ -1711,10 +1709,6 @@ Playlist::clear (bool with_signals)
}
regions.clear ();
for (auto & r : pending_removes) {
remove_dependents (r);
}
}
if (with_signals) {