summaryrefslogtreecommitdiff
path: root/libs/ardour/region.cc
diff options
context:
space:
mode:
authorDavid Robillard <d@drobilla.net>2010-12-20 23:24:43 +0000
committerDavid Robillard <d@drobilla.net>2010-12-20 23:24:43 +0000
commitfe79c4272531a426358f896053045f371da8baa7 (patch)
tree33e9103ad2ff15ce64ac6f9374f00f8f332a7db4 /libs/ardour/region.cc
parentfb21bf14800d3e682073365d4836e49408ffe25e (diff)
Remove unused Region constructor.
git-svn-id: svn://localhost/ardour2/branches/3.0@8316 d708f5d6-7413-0410-9779-e7cbd77b26cf
Diffstat (limited to 'libs/ardour/region.cc')
-rw-r--r--libs/ardour/region.cc31
1 files changed, 1 insertions, 30 deletions
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<const Region> 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<const Region> other, const SourceList& srcs)
assert(_sources.size() > 0);
}
-/** Simple "copy" constructor */
-Region::Region (boost::shared_ptr<const Region> 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));