From 52a8242a1158426caeed4757bbc3f7f71091e351 Mon Sep 17 00:00:00 2001 From: Paul Davis Date: Thu, 31 May 2007 21:15:28 +0000 Subject: fixup botched xfade-as-audioregion; apply work from 2.0-ongoing git-svn-id: svn://localhost/ardour2/trunk@1933 d708f5d6-7413-0410-9779-e7cbd77b26cf --- libs/ardour/region_factory.cc | 34 ---------------------------------- 1 file changed, 34 deletions(-) (limited to 'libs/ardour/region_factory.cc') diff --git a/libs/ardour/region_factory.cc b/libs/ardour/region_factory.cc index cc41405551..a0aa3be759 100644 --- a/libs/ardour/region_factory.cc +++ b/libs/ardour/region_factory.cc @@ -89,24 +89,6 @@ RegionFactory::create (boost::shared_ptr region) } } -boost::shared_ptr -RegionFactory::create (const Playlist& playlist, boost::shared_ptr region) -{ - boost::shared_ptr xfade; - boost::shared_ptr mr; - - if ((xfade = boost::dynamic_pointer_cast(region)) != 0) { - boost::shared_ptr ret (new Crossfade (playlist, xfade)); - /* pure copy constructor - no CheckNewRegion emitted */ - return ret; - } else { - fatal << _("programming error: RegionFactory::create(Playlist,Region) called with unknown Region type") - << endmsg; - /*NOTREACHED*/ - return boost::shared_ptr(); - } -} - boost::shared_ptr RegionFactory::create (boost::shared_ptr region, nframes_t start, nframes_t length, std::string name, @@ -155,22 +137,6 @@ RegionFactory::create (SourceList& srcs, nframes_t start, nframes_t length, cons return boost::shared_ptr (); } -boost::shared_ptr -RegionFactory::create (const Playlist& playlist, const XMLNode& node) -{ - /* this is a constructor for "dependent" region types. - these objects require a playlist so that they can - look up the region instances that they depend upon. - */ - - if (node.name() == Crossfade::node_name()) { - boost::shared_ptr ret (new Crossfade (playlist, node)); - return ret; - } - - return boost::shared_ptr (); -} - boost::shared_ptr RegionFactory::create (SourceList& srcs, const XMLNode& node) { -- cgit v1.2.3