13
0

Remove unused Region constructor.

git-svn-id: svn://localhost/ardour2/branches/3.0@8316 d708f5d6-7413-0410-9779-e7cbd77b26cf
This commit is contained in:
David Robillard 2010-12-20 23:24:43 +00:00
parent fb21bf1480
commit fe79c42725
2 changed files with 1 additions and 33 deletions

View File

@ -312,9 +312,6 @@ class Region
/** Construct a region as a copy of another region, but with different sources */
Region (boost::shared_ptr<const Region>, const SourceList&);
/** Normal Region copy constructor */
Region (boost::shared_ptr<const Region>);
/** Constructor for derived types only */
Region (Session& s, framepos_t start, framecnt_t length, const std::string& name, DataType);

View File

@ -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));