Optimize automation-event process splitting
[ardour.git] / libs / ardour / pannable.cc
index a32efc74aabdb53701831662ca506d0735adb1cf..09a63cca3f83fa77f6b9ef1d3fe6b2e64ad6532d 100644 (file)
@@ -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<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)
 {
@@ -171,14 +150,14 @@ Pannable::start_touch (double when)
 }
 
 void
-Pannable::stop_touch (bool mark, double when)
+Pannable::stop_touch (double when)
 {
        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()->stop_touch (mark, when);
+                       ac->alist()->stop_touch (when);
                }
        }
        g_atomic_int_set (&_touching, 0);
@@ -187,13 +166,12 @@ Pannable::stop_touch (bool mark, double when)
 XMLNode&
 Pannable::get_state ()
 {
-       return state (true);
+       return state ();
 }
 
 XMLNode&
-Pannable::state (bool /*full*/)
+Pannable::state ()
 {
-       LocaleGuard lg;
        XMLNode* node = new XMLNode (X_("Pannable"));
 
        node->add_child_nocopy (pan_azimuth_control->get_state());