diff options
author | Paul Davis <paul@linuxaudiosystems.com> | 2007-05-31 21:15:28 +0000 |
---|---|---|
committer | Paul Davis <paul@linuxaudiosystems.com> | 2007-05-31 21:15:28 +0000 |
commit | 52a8242a1158426caeed4757bbc3f7f71091e351 (patch) | |
tree | 43de2da9007dd8178162e80b778586f1b460eb12 /libs/ardour/region_factory.cc | |
parent | 539aa71d180d6b3d5c887707c356d3d00c0b37e8 (diff) |
fixup botched xfade-as-audioregion; apply work from 2.0-ongoing
git-svn-id: svn://localhost/ardour2/trunk@1933 d708f5d6-7413-0410-9779-e7cbd77b26cf
Diffstat (limited to 'libs/ardour/region_factory.cc')
-rw-r--r-- | libs/ardour/region_factory.cc | 34 |
1 files changed, 0 insertions, 34 deletions
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 @@ -90,24 +90,6 @@ RegionFactory::create (boost::shared_ptr<Region> region) } boost::shared_ptr<Region> -RegionFactory::create (const Playlist& playlist, boost::shared_ptr<Region> region) -{ - boost::shared_ptr<Crossfade> xfade; - boost::shared_ptr<MidiRegion> mr; - - if ((xfade = boost::dynamic_pointer_cast<Crossfade>(region)) != 0) { - boost::shared_ptr<Region> 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<Region>(); - } -} - -boost::shared_ptr<Region> RegionFactory::create (boost::shared_ptr<AudioRegion> region, nframes_t start, nframes_t length, std::string name, layer_t layer, Region::Flag flags, bool announce) @@ -156,22 +138,6 @@ RegionFactory::create (SourceList& srcs, nframes_t start, nframes_t length, cons } boost::shared_ptr<Region> -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<Region> ret (new Crossfade (playlist, node)); - return ret; - } - - return boost::shared_ptr<Region> (); -} - -boost::shared_ptr<Region> RegionFactory::create (SourceList& srcs, const XMLNode& node) { if (srcs.empty()) { |