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/pannable.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/pannable.cc')
-rw-r--r-- | libs/ardour/pannable.cc | 21 |
1 files changed, 0 insertions, 21 deletions
diff --git a/libs/ardour/pannable.cc b/libs/ardour/pannable.cc index a32efc74aa..6b64a802bc 100644 --- a/libs/ardour/pannable.cc +++ b/libs/ardour/pannable.cc @@ -45,7 +45,6 @@ Pannable::Pannable (Session& s) , pan_frontback_control (new PanControllable (s, "", this, PanFrontBackAutomation)) , pan_lfe_control (new PanControllable (s, "", this, PanLFEAutomation)) , _auto_state (Off) - , _auto_style (Absolute) , _has_state (false) , _responding_to_control_auto_state_change (0) { @@ -137,26 +136,6 @@ Pannable::set_automation_state (AutoState state) } void -Pannable::set_automation_style (AutoStyle style) -{ - if (style != _auto_style) { - _auto_style = style; - - const Controls& c (controls()); - - for (Controls::const_iterator ci = c.begin(); ci != c.end(); ++ci) { - boost::shared_ptr<AutomationControl> ac = boost::dynamic_pointer_cast<AutomationControl>(ci->second); - if (ac) { - ac->alist()->set_automation_style (style); - } - } - - session().set_dirty (); - automation_style_changed (); - } -} - -void Pannable::start_touch (double when) { const Controls& c (controls()); |