From 031f39d9d1b363c380c6c8fae9110faab92b2d87 Mon Sep 17 00:00:00 2001 From: Paul Davis Date: Wed, 27 Oct 2021 22:52:58 -0600 Subject: [PATCH] triggerbox: remove unused member vars from MIDITrigger --- libs/ardour/ardour/triggerbox.h | 2 -- libs/ardour/triggerbox.cc | 4 ---- 2 files changed, 6 deletions(-) diff --git a/libs/ardour/ardour/triggerbox.h b/libs/ardour/ardour/triggerbox.h index 7c6951b3b5..ad9026e088 100644 --- a/libs/ardour/ardour/triggerbox.h +++ b/libs/ardour/ardour/triggerbox.h @@ -307,8 +307,6 @@ class LIBARDOUR_API MIDITrigger : public Trigger { RTMidiBuffer data; size_t read_index; /* index into data */ - samplepos_t start_run_sample; - samplepos_t end_run_sample; samplecnt_t data_length; /* using timestamps from data */ samplecnt_t usable_length; /* using timestamps from data */ diff --git a/libs/ardour/triggerbox.cc b/libs/ardour/triggerbox.cc index 682ea9bda0..bce3cc76f2 100644 --- a/libs/ardour/triggerbox.cc +++ b/libs/ardour/triggerbox.cc @@ -979,8 +979,6 @@ AudioTrigger::run (BufferSet& bufs, pframes_t nframes, pframes_t dest_offset, bo MIDITrigger::MIDITrigger (uint64_t n, TriggerBox& b) : Trigger (n, b) , read_index (0) - , start_run_sample (0) - , end_run_sample (0) , data_length (0) , usable_length (0) , _start_offset (0, 0, 0) @@ -1195,7 +1193,6 @@ MIDITrigger::retrigger () /* XXX need to deal with bar offsets */ // const Temporal::BBT_Offset o = _start_offset + _legato_offset; read_index = 0; - end_run_sample = transition_samples; _legato_offset = Temporal::BBT_Offset (); DEBUG_TRACE (DEBUG::Triggers, string_compose ("%1 retriggered to %2, ts = %3\n", _index, read_index, transition_samples)); } @@ -1252,7 +1249,6 @@ MIDITrigger::run (BufferSet& bufs, samplepos_t start_sample, samplepos_t end_sam */ samplepos_t old_ers = end_run_sample; retrigger (); - end_run_sample = old_ers; /* and go around again */ continue;