From 7afc8f7a31e8cb8718c0dbf9acef27aded72a1be Mon Sep 17 00:00:00 2001 From: Paul Davis Date: Fri, 24 Dec 2021 14:11:43 -0700 Subject: [PATCH] triggerbox: remove unused local variable --- libs/ardour/triggerbox.cc | 4 ---- 1 file changed, 4 deletions(-) diff --git a/libs/ardour/triggerbox.cc b/libs/ardour/triggerbox.cc index 570718c5fd..c66fd95da2 100644 --- a/libs/ardour/triggerbox.cc +++ b/libs/ardour/triggerbox.cc @@ -2547,17 +2547,13 @@ TriggerBox::determine_next_trigger (uint32_t current) * random number and the probability setting) */ - int which_follow_action = 0; - int r = _pcg.rand (100); // 0 .. 99 Trigger::FollowAction fa; if (r >= all_triggers[current]->follow_action_probability()) { fa = all_triggers[current]->follow_action (0); - which_follow_action = 0; } else { fa = all_triggers[current]->follow_action (1); - which_follow_action = 1; } /* first switch: deal with the "special" cases where we either do