From fde0e293a30ed4e689208b456a4431b7bb278eb4 Mon Sep 17 00:00:00 2001 From: Robin Gareus Date: Mon, 24 Jul 2017 01:22:50 +0200 Subject: Remove unused "mark" parameter from stop_touch() API --- gtk2_ardour/automation_controller.cc | 15 +-------------- gtk2_ardour/gain_meter.cc | 2 +- gtk2_ardour/lv2_plugin_ui.cc | 2 +- gtk2_ardour/panner_ui.cc | 2 +- gtk2_ardour/processor_box.cc | 2 +- gtk2_ardour/route_ui.cc | 2 +- 6 files changed, 6 insertions(+), 19 deletions(-) (limited to 'gtk2_ardour') diff --git a/gtk2_ardour/automation_controller.cc b/gtk2_ardour/automation_controller.cc index c151b72d14..d53c61432e 100644 --- a/gtk2_ardour/automation_controller.cc +++ b/gtk2_ardour/automation_controller.cc @@ -200,20 +200,7 @@ AutomationController::start_touch() void AutomationController::end_touch () { - if (_controllable->automation_state() == Touch) { - - bool mark = false; - double when = 0; - - if (_controllable->session().transport_rolling()) { - mark = true; - when = _controllable->session().transport_frame(); - } - - _controllable->stop_touch (mark, when); - } else { - _controllable->stop_touch (false, _controllable->session().transport_frame()); - } + _controllable->stop_touch (_controllable->session().transport_frame()); } bool diff --git a/gtk2_ardour/gain_meter.cc b/gtk2_ardour/gain_meter.cc index ab90de8862..0b063ff886 100644 --- a/gtk2_ardour/gain_meter.cc +++ b/gtk2_ardour/gain_meter.cc @@ -737,7 +737,7 @@ GainMeterBase::amp_start_touch () void GainMeterBase::amp_stop_touch () { - _control->stop_touch (false, _control->session().transport_frame()); + _control->stop_touch (_control->session().transport_frame()); effective_gain_display (); } diff --git a/gtk2_ardour/lv2_plugin_ui.cc b/gtk2_ardour/lv2_plugin_ui.cc index 7f735dfcc5..d7f6708d00 100644 --- a/gtk2_ardour/lv2_plugin_ui.cc +++ b/gtk2_ardour/lv2_plugin_ui.cc @@ -105,7 +105,7 @@ LV2PluginUI::touch(void* controller, if (grabbed) { control->start_touch(control->session().transport_frame()); } else { - control->stop_touch(false, control->session().transport_frame()); + control->stop_touch(control->session().transport_frame()); } } diff --git a/gtk2_ardour/panner_ui.cc b/gtk2_ardour/panner_ui.cc index 0fd588dfdf..a394932306 100644 --- a/gtk2_ardour/panner_ui.cc +++ b/gtk2_ardour/panner_ui.cc @@ -352,7 +352,7 @@ PannerUI::stop_touch (boost::weak_ptr wac) if (!ac) { return; } - ac->stop_touch (false, ac->session().transport_frame()); + ac->stop_touch (ac->session().transport_frame()); } bool diff --git a/gtk2_ardour/processor_box.cc b/gtk2_ardour/processor_box.cc index 8b353c040e..3e39e639f2 100644 --- a/gtk2_ardour/processor_box.cc +++ b/gtk2_ardour/processor_box.cc @@ -921,7 +921,7 @@ ProcessorEntry::Control::end_touch () if (!c) { return; } - c->stop_touch (true, c->session().transport_frame()); + c->stop_touch (c->session().transport_frame()); } void diff --git a/gtk2_ardour/route_ui.cc b/gtk2_ardour/route_ui.cc index a935ec3c5d..d2707f5476 100644 --- a/gtk2_ardour/route_ui.cc +++ b/gtk2_ardour/route_ui.cc @@ -531,7 +531,7 @@ RouteUI::mute_release (GdkEventButton* /*ev*/) _mute_release = 0; } - _route->mute_control()->stop_touch (false, _session->audible_frame ()); + _route->mute_control()->stop_touch (_session->audible_frame ()); return false; } -- cgit v1.2.3