diff options
author | Carl Hetherington <carl@carlh.net> | 2012-04-04 00:15:41 +0000 |
---|---|---|
committer | Carl Hetherington <carl@carlh.net> | 2012-04-04 00:15:41 +0000 |
commit | daad719546d96bfe9ce7e8e1b7fc8f66c4189b71 (patch) | |
tree | 1e3384aa7f0625ac1ad1c78477c277e4ac7d9f5d /libs/ardour | |
parent | 37117e5c45d72dadbe028a7f02d19d43e5b989f2 (diff) |
Remove ControlList::_max_xval which is set up and stored in
state but never actually read.
git-svn-id: svn://localhost/ardour2/branches/3.0@11787 d708f5d6-7413-0410-9779-e7cbd77b26cf
Diffstat (limited to 'libs/ardour')
-rw-r--r-- | libs/ardour/audioregion.cc | 2 | ||||
-rw-r--r-- | libs/ardour/automation_list.cc | 9 |
2 files changed, 0 insertions, 11 deletions
diff --git a/libs/ardour/audioregion.cc b/libs/ardour/audioregion.cc index 7e212630d5..2c63f1d40c 100644 --- a/libs/ardour/audioregion.cc +++ b/libs/ardour/audioregion.cc @@ -668,7 +668,6 @@ AudioRegion::_set_state (const XMLNode& node, int version, PropertyChange& what_ set_default_envelope (); } - _envelope->set_max_xval (_length); _envelope->truncate_end (_length); @@ -987,7 +986,6 @@ AudioRegion::recompute_at_end () _envelope->freeze (); _envelope->truncate_end (_length); - _envelope->set_max_xval (_length); _envelope->thaw (); suspend_property_changes(); diff --git a/libs/ardour/automation_list.cc b/libs/ardour/automation_list.cc index 0810d2f2d0..3c35dbb8fd 100644 --- a/libs/ardour/automation_list.cc +++ b/libs/ardour/automation_list.cc @@ -156,7 +156,6 @@ AutomationList::operator= (const AutomationList& other) _min_yval = other._min_yval; _max_yval = other._max_yval; - _max_xval = other._max_xval; _default_value = other._default_value; mark_dirty (); @@ -278,8 +277,6 @@ AutomationList::state (bool full) root->add_property ("min-yval", buf); snprintf (buf, sizeof (buf), "%.12g", _max_yval); root->add_property ("max-yval", buf); - snprintf (buf, sizeof (buf), "%.12g", _max_xval); - root->add_property ("max-xval", buf); root->add_property ("interpolation-style", enum_2_string (_interpolation)); @@ -491,12 +488,6 @@ AutomationList::set_state (const XMLNode& node, int version) _max_yval = FLT_MAX; } - if ((prop = node.property (X_("max-xval"))) != 0) { - _max_xval = atof (prop->value ().c_str()); - } else { - _max_xval = 0; // means "no limit ; - } - bool have_events = false; for (niter = nlist.begin(); niter != nlist.end(); ++niter) { |