13
0

Remove unused variables

This commit is contained in:
Robin Gareus 2021-07-11 08:07:38 +02:00
parent 35394f427c
commit f61eb7e067
Signed by: rgareus
GPG Key ID: A090BCE02CF57F04
3 changed files with 1 additions and 8 deletions

View File

@ -186,8 +186,6 @@ protected:
/* The MIDI stuff */
MidiRingBuffer<samplepos_t>* _midi_buf;
gint _samples_written_to_ringbuffer;
gint _samples_read_from_ringbuffer;
static void get_location_times (const Location* location, samplepos_t* start, samplepos_t* end, samplepos_t* length);
};

View File

@ -58,8 +58,6 @@ DiskIOProcessor::DiskIOProcessor (Session& s, Track& t, string const & str, Flag
, _track (t)
, channels (new ChannelList)
, _midi_buf (0)
, _samples_written_to_ringbuffer (0)
, _samples_read_from_ringbuffer (0)
{
set_display_to_user (false);
}

View File

@ -865,7 +865,7 @@ DiskWriter::configuration_changed ()
}
int
DiskWriter::seek (samplepos_t sample, bool /*complete_refill*/)
DiskWriter::seek (samplepos_t /*sample*/, bool /*complete_refill*/)
{
uint32_t n;
ChannelList::iterator chan;
@ -878,10 +878,7 @@ DiskWriter::seek (samplepos_t sample, bool /*complete_refill*/)
if (_midi_buf) {
_midi_buf->reset ();
}
g_atomic_int_set(&_samples_read_from_ringbuffer, 0);
g_atomic_int_set(&_samples_written_to_ringbuffer, 0);
playback_sample = sample;
return 0;
}