diff options
-rw-r--r-- | libs/ardour/ardour/region_factory.h | 1 | ||||
-rw-r--r-- | libs/ardour/region_factory.cc | 19 |
2 files changed, 0 insertions, 20 deletions
diff --git a/libs/ardour/ardour/region_factory.h b/libs/ardour/ardour/region_factory.h index 337821e0ea..d9059fc19e 100644 --- a/libs/ardour/ardour/region_factory.h +++ b/libs/ardour/ardour/region_factory.h @@ -84,7 +84,6 @@ public: static void remove_regions_using_source (boost::shared_ptr<Source>); static void map_remove (boost::weak_ptr<Region>); - static void map_remove_with_equivalents (boost::shared_ptr<Region>); static void delete_all_regions (); static const RegionMap& regions() { return region_map; } static uint32_t nregions (); diff --git a/libs/ardour/region_factory.cc b/libs/ardour/region_factory.cc index b5195d80d9..f574097fea 100644 --- a/libs/ardour/region_factory.cc +++ b/libs/ardour/region_factory.cc @@ -347,25 +347,6 @@ RegionFactory::map_remove (boost::weak_ptr<Region> w) } } -void -RegionFactory::map_remove_with_equivalents (boost::shared_ptr<Region> r) -{ - Glib::Mutex::Lock lm (region_map_lock); - - for (RegionMap::iterator i = region_map.begin(); i != region_map.end(); ) { - RegionMap::iterator tmp = i; - ++tmp; - - if (r->region_list_equivalent (i->second)) { - region_map.erase (i); - } else if (r == i->second) { - region_map.erase (i); - } - - i = tmp; - } -} - boost::shared_ptr<Region> RegionFactory::region_by_id (const PBD::ID& id) { |