Remove unused method.
authorCarl Hetherington <carl@carlh.net>
Tue, 15 May 2012 01:23:55 +0000 (01:23 +0000)
committerCarl Hetherington <carl@carlh.net>
Tue, 15 May 2012 01:23:55 +0000 (01:23 +0000)
git-svn-id: svn://localhost/ardour2/branches/3.0@12284 d708f5d6-7413-0410-9779-e7cbd77b26cf

libs/ardour/ardour/region_factory.h
libs/ardour/region_factory.cc

index 337821e0eaa7f77d29ba5094ad248cfa6554b3e7..d9059fc19e317c0c5a6fa261c04cc58c52e3f2a3 100644 (file)
@@ -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 ();
index b5195d80d98449165f92003c3998a5d398a07843..f574097fea9fed8b30b06a274cfe099d7a9eb26e 100644 (file)
@@ -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)
 {