Cruft removal: behavior of Region List has changed; these functions are deprecated (libardour)
This commit is contained in:
parent
1665d0e1bc
commit
c2fb85e37e
|
@ -152,8 +152,6 @@ public:
|
|||
void add_region (boost::shared_ptr<Region>, samplepos_t position, float times = 1, bool auto_partition = false, int32_t sub_num = 0, double quarter_note = 0.0, bool for_music = false);
|
||||
void remove_region (boost::shared_ptr<Region>);
|
||||
void get_equivalent_regions (boost::shared_ptr<Region>, std::vector<boost::shared_ptr<Region> >&);
|
||||
void get_region_list_equivalent_regions (boost::shared_ptr<Region>, std::vector<boost::shared_ptr<Region> >&);
|
||||
void get_source_equivalent_regions (boost::shared_ptr<Region>, std::vector<boost::shared_ptr<Region> >&);
|
||||
void replace_region (boost::shared_ptr<Region> old, boost::shared_ptr<Region> newr, samplepos_t pos);
|
||||
void split_region (boost::shared_ptr<Region>, const MusicSample& position);
|
||||
void split (const MusicSample& at);
|
||||
|
|
|
@ -214,7 +214,6 @@ public:
|
|||
bool overlap_equivalent (boost::shared_ptr<const Region>) const;
|
||||
bool enclosed_equivalent (boost::shared_ptr<const Region>) const;
|
||||
bool layer_and_time_equivalent (boost::shared_ptr<const Region>) const;
|
||||
bool region_list_equivalent (boost::shared_ptr<const Region>) const;
|
||||
bool source_equivalent (boost::shared_ptr<const Region>) const;
|
||||
bool any_source_equivalent (boost::shared_ptr<const Region>) const;
|
||||
bool uses_source (boost::shared_ptr<const Source>, bool shallow = false) const;
|
||||
|
|
|
@ -951,26 +951,6 @@ Playlist::get_equivalent_regions (boost::shared_ptr<Region> other, vector<boost:
|
|||
}
|
||||
}
|
||||
|
||||
void
|
||||
Playlist::get_region_list_equivalent_regions (boost::shared_ptr<Region> other, vector<boost::shared_ptr<Region> >& results)
|
||||
{
|
||||
for (RegionList::iterator i = regions.begin (); i != regions.end (); ++i) {
|
||||
if ((*i) && (*i)->region_list_equivalent (other)) {
|
||||
results.push_back (*i);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
void
|
||||
Playlist::get_source_equivalent_regions (boost::shared_ptr<Region> other, vector<boost::shared_ptr<Region> >& results)
|
||||
{
|
||||
for (RegionList::iterator i = regions.begin (); i != regions.end (); ++i) {
|
||||
if ((*i) && (*i)->any_source_equivalent (other)) {
|
||||
results.push_back (*i);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
void
|
||||
Playlist::partition (samplepos_t start, samplepos_t end, bool cut)
|
||||
{
|
||||
|
|
|
@ -1549,12 +1549,6 @@ Region::size_equivalent (boost::shared_ptr<const Region> other) const
|
|||
_length == other->_length;
|
||||
}
|
||||
|
||||
bool
|
||||
Region::region_list_equivalent (boost::shared_ptr<const Region> other) const
|
||||
{
|
||||
return size_equivalent (other) && source_equivalent (other) && _name == other->_name;
|
||||
}
|
||||
|
||||
void
|
||||
Region::source_deleted (boost::weak_ptr<Source>)
|
||||
{
|
||||
|
|
|
@ -336,13 +336,6 @@ SessionPlaylists::destroy_region (boost::shared_ptr<Region> r)
|
|||
}
|
||||
}
|
||||
|
||||
void
|
||||
SessionPlaylists::find_equivalent_playlist_regions (boost::shared_ptr<Region> region, vector<boost::shared_ptr<Region> >& result)
|
||||
{
|
||||
for (List::iterator i = playlists.begin(); i != playlists.end(); ++i)
|
||||
(*i)->get_region_list_equivalent_regions (region, result);
|
||||
}
|
||||
|
||||
/** Return the number of playlists (not regions) that contain @a src
|
||||
* Important: this counts usage in both used and not-used playlists.
|
||||
*/
|
||||
|
|
Loading…
Reference in New Issue