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