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/automatable.cc | 28 ---------------------------- 1 file changed, 28 deletions(-) (limited to 'libs/ardour/automatable.cc') 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 @@ -313,34 +313,6 @@ Automatable::get_parameter_automation_state (Evoral::Parameter param) return result; } -void -Automatable::set_parameter_automation_style (Evoral::Parameter param, AutoStyle s) -{ - Glib::Threads::Mutex::Lock lm (control_lock()); - - boost::shared_ptr 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 c = control(param); - boost::shared_ptr l = boost::dynamic_pointer_cast(c->list()); - - if (c) { - return l->automation_style(); - } else { - return Absolute; // whatever - } -} - void Automatable::protect_automation () { -- cgit v1.2.3