From 7c94499aeca8a67ee5f0fe51fb4f957d6618fef4 Mon Sep 17 00:00:00 2001 From: Robin Gareus Date: Mon, 19 Jun 2017 17:40:32 +0200 Subject: 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. --- libs/ardour/pannable.cc | 21 --------------------- 1 file changed, 21 deletions(-) (limited to 'libs/ardour/pannable.cc') 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) { @@ -136,26 +135,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 ac = boost::dynamic_pointer_cast(ci->second); - if (ac) { - ac->alist()->set_automation_style (style); - } - } - - session().set_dirty (); - automation_style_changed (); - } -} - void Pannable::start_touch (double when) { -- cgit v1.2.3