diff options
author | Robin Gareus <robin@gareus.org> | 2017-06-19 17:40:32 +0200 |
---|---|---|
committer | Robin Gareus <robin@gareus.org> | 2017-06-21 13:16:27 +0200 |
commit | 7c94499aeca8a67ee5f0fe51fb4f957d6618fef4 (patch) | |
tree | 94fa3d66ad0414226aba274bfc77bf7f451e297e /libs/ardour/automation_list.cc | |
parent | 31c6f66d9b75c70a4b02dfa78d5b45b357e18fe8 (diff) |
Remove Cruft -- AutomationStyle never did anything.
Trim automation is planned via SlavableAC as normal AutomationMode.
Some of this code have a revival (a special "Trim+Preview" state
before merging Automation but that has to be more general than Pan & Gain.
Diffstat (limited to 'libs/ardour/automation_list.cc')
-rw-r--r-- | libs/ardour/automation_list.cc | 22 |
1 files changed, 0 insertions, 22 deletions
diff --git a/libs/ardour/automation_list.cc b/libs/ardour/automation_list.cc index 40c924d293..fbeb98fa26 100644 --- a/libs/ardour/automation_list.cc +++ b/libs/ardour/automation_list.cc @@ -59,7 +59,6 @@ AutomationList::AutomationList (const Evoral::Parameter& id, const Evoral::Param , _before (0) { _state = Off; - _style = Absolute; g_atomic_int_set (&_touching, 0); create_curve_if_necessary(); @@ -73,7 +72,6 @@ AutomationList::AutomationList (const Evoral::Parameter& id) , _before (0) { _state = Off; - _style = Absolute; g_atomic_int_set (&_touching, 0); create_curve_if_necessary(); @@ -87,7 +85,6 @@ AutomationList::AutomationList (const AutomationList& other) , StatefulDestructible() , _before (0) { - _style = other._style; _state = other._state; g_atomic_int_set (&_touching, other.touching()); @@ -101,7 +98,6 @@ AutomationList::AutomationList (const AutomationList& other, double start, doubl : ControlList(other, start, end) , _before (0) { - _style = other._style; _state = other._state; g_atomic_int_set (&_touching, other.touching()); @@ -120,7 +116,6 @@ AutomationList::AutomationList (const XMLNode& node, Evoral::Parameter id) { g_atomic_int_set (&_touching, 0); _state = Off; - _style = Absolute; set_state (node, Stateful::loading_state_version); @@ -173,7 +168,6 @@ AutomationList::operator= (const AutomationList& other) ControlList::operator= (other); _state = other._state; - _style = other._style; _touching = other._touching; mark_dirty (); @@ -209,15 +203,6 @@ AutomationList::set_automation_state (AutoState s) } void -AutomationList::set_automation_style (AutoStyle s) -{ - if (s != _style) { - _style = s; - automation_style_changed (); /* EMIT SIGNAL */ - } -} - -void AutomationList::start_write_pass (double when) { delete _before; @@ -359,8 +344,6 @@ AutomationList::state (bool full) root->set_property ("state", Off); } - root->set_property ("style", _style); - if (!_events.empty()) { root->add_child_nocopy (serialize_events()); } @@ -516,10 +499,6 @@ AutomationList::set_state (const XMLNode& node, int version) _default_value = 0.0; } - if (!node.get_property (X_("style"), _style)) { - _style = Absolute; - } - if (node.get_property (X_("state"), _state)) { if (_state == Write) { _state = Off; @@ -564,7 +543,6 @@ AutomationList::operator!= (AutomationList const & other) const return ( static_cast<ControlList const &> (*this) != static_cast<ControlList const &> (other) || _state != other._state || - _style != other._style || _touching != other._touching ); } |