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/automatable.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/automatable.cc')
-rw-r--r-- | libs/ardour/automatable.cc | 28 |
1 files changed, 0 insertions, 28 deletions
diff --git a/libs/ardour/automatable.cc b/libs/ardour/automatable.cc index 417110e433..3045e8573c 100644 --- a/libs/ardour/automatable.cc +++ b/libs/ardour/automatable.cc @@ -314,34 +314,6 @@ Automatable::get_parameter_automation_state (Evoral::Parameter param) } void -Automatable::set_parameter_automation_style (Evoral::Parameter param, AutoStyle s) -{ - Glib::Threads::Mutex::Lock lm (control_lock()); - - boost::shared_ptr<AutomationControl> c = automation_control(param, true); - - if (c && (s != c->automation_style())) { - c->set_automation_style (s); - _a_session.set_dirty (); - } -} - -AutoStyle -Automatable::get_parameter_automation_style (Evoral::Parameter param) -{ - Glib::Threads::Mutex::Lock lm (control_lock()); - - boost::shared_ptr<Evoral::Control> c = control(param); - boost::shared_ptr<AutomationList> l = boost::dynamic_pointer_cast<AutomationList>(c->list()); - - if (c) { - return l->automation_style(); - } else { - return Absolute; // whatever - } -} - -void Automatable::protect_automation () { typedef set<Evoral::Parameter> ParameterSet; |