From fe79c4272531a426358f896053045f371da8baa7 Mon Sep 17 00:00:00 2001 From: David Robillard Date: Mon, 20 Dec 2010 23:24:43 +0000 Subject: Remove unused Region constructor. git-svn-id: svn://localhost/ardour2/branches/3.0@8316 d708f5d6-7413-0410-9779-e7cbd77b26cf --- libs/ardour/ardour/region.h | 3 --- libs/ardour/region.cc | 31 +------------------------------ 2 files changed, 1 insertion(+), 33 deletions(-) (limited to 'libs/ardour') diff --git a/libs/ardour/ardour/region.h b/libs/ardour/ardour/region.h index 6bb1b209b8..63ac879eeb 100644 --- a/libs/ardour/ardour/region.h +++ b/libs/ardour/ardour/region.h @@ -312,9 +312,6 @@ class Region /** Construct a region as a copy of another region, but with different sources */ Region (boost::shared_ptr, const SourceList&); - /** Normal Region copy constructor */ - Region (boost::shared_ptr); - /** Constructor for derived types only */ Region (Session& s, framepos_t start, framecnt_t length, const std::string& name, DataType); diff --git a/libs/ardour/region.cc b/libs/ardour/region.cc index 68325c603c..6a2a6f1e30 100644 --- a/libs/ardour/region.cc +++ b/libs/ardour/region.cc @@ -333,7 +333,7 @@ Region::Region (boost::shared_ptr other, frameoffset_t offset, boo if (other->_sync_position < _start) { _sync_marked = false; _sync_position = _start; - } else { + } else { _sync_position = other->_sync_position; } } else { @@ -385,35 +385,6 @@ Region::Region (boost::shared_ptr other, const SourceList& srcs) assert(_sources.size() > 0); } -/** Simple "copy" constructor */ -Region::Region (boost::shared_ptr other) - : SessionObject(other->session(), other->name()) - , _type(other->data_type()) - , REGION_COPY_STATE (other) - , _last_length (other->_last_length) - , _last_position (other->_last_position) - , _first_edit (EditChangesID) - , _read_data_count(0) - , _last_layer_op(other->_last_layer_op) - , _pending_explicit_relayer (false) -{ - register_properties (); - - _locked = false; - _position_locked = false; - - other->_first_edit = EditChangesName; - - if (other->_extra_xml) { - _extra_xml = new XMLNode (*other->_extra_xml); - } else { - _extra_xml = 0; - } - - use_sources (other->_sources); - assert(_sources.size() > 0); -} - Region::~Region () { DEBUG_TRACE (DEBUG::Destruction, string_compose ("Region %1 destructor @ %2\n", _name, this)); -- cgit v1.2.3