diff options
author | Carl Hetherington <carl@carlh.net> | 2010-07-16 19:37:46 +0000 |
---|---|---|
committer | Carl Hetherington <carl@carlh.net> | 2010-07-16 19:37:46 +0000 |
commit | faefa809ad37e5e4c9e729dd52723c7a15aa7237 (patch) | |
tree | 68e8cbca4c52dd9b5cd020659d3a5440bb7ef563 /libs/ardour/audioregion.cc | |
parent | c9b121803c3ad85c2dbb160f67a630e262bcedf5 (diff) |
Remove unused full parameter to Region::state
git-svn-id: svn://localhost/ardour2/branches/3.0@7428 d708f5d6-7413-0410-9779-e7cbd77b26cf
Diffstat (limited to 'libs/ardour/audioregion.cc')
-rw-r--r-- | libs/ardour/audioregion.cc | 43 |
1 files changed, 18 insertions, 25 deletions
diff --git a/libs/ardour/audioregion.cc b/libs/ardour/audioregion.cc index 5f8b35256b..6f349fed05 100644 --- a/libs/ardour/audioregion.cc +++ b/libs/ardour/audioregion.cc @@ -517,9 +517,9 @@ AudioRegion::_read_at (const SourceList& /*srcs*/, framecnt_t limit, } XMLNode& -AudioRegion::state (bool full) +AudioRegion::state () { - XMLNode& node (Region::state (full)); + XMLNode& node (Region::state ()); XMLNode *child; char buf[64]; LocaleGuard lg (X_("POSIX")); @@ -527,34 +527,27 @@ AudioRegion::state (bool full) snprintf (buf, sizeof (buf), "%u", (uint32_t) _sources.size()); node.add_property ("channels", buf); - if (full) { - Stateful::add_properties (node); - } + Stateful::add_properties (node); child = node.add_child ("Envelope"); - if (full) { - bool default_env = false; - - // If there are only two points, the points are in the start of the region and the end of the region - // so, if they are both at 1.0f, that means the default region. - - if (_envelope->size() == 2 && - _envelope->front()->value == 1.0f && - _envelope->back()->value==1.0f) { - if (_envelope->front()->when == 0 && _envelope->back()->when == _length) { - default_env = true; - } - } - - if (default_env) { - child->add_property ("default", "yes"); - } else { - child->add_child_nocopy (_envelope->get_state ()); + bool default_env = false; + + // If there are only two points, the points are in the start of the region and the end of the region + // so, if they are both at 1.0f, that means the default region. + + if (_envelope->size() == 2 && + _envelope->front()->value == 1.0f && + _envelope->back()->value==1.0f) { + if (_envelope->front()->when == 0 && _envelope->back()->when == _length) { + default_env = true; } - - } else { + } + + if (default_env) { child->add_property ("default", "yes"); + } else { + child->add_child_nocopy (_envelope->get_state ()); } return node; |