From 75e6adcf03078c24d13ddc7c9c714582a6cf7891 Mon Sep 17 00:00:00 2001 From: Carl Hetherington Date: Mon, 24 Oct 2011 20:45:29 +0000 Subject: Remove unused read/write data count code. git-svn-id: svn://localhost/ardour2/branches/3.0@10300 d708f5d6-7413-0410-9779-e7cbd77b26cf --- libs/ardour/smf_source.cc | 12 ------------ 1 file changed, 12 deletions(-) (limited to 'libs/ardour/smf_source.cc') diff --git a/libs/ardour/smf_source.cc b/libs/ardour/smf_source.cc index 877882abcb..822e518e3f 100644 --- a/libs/ardour/smf_source.cc +++ b/libs/ardour/smf_source.cc @@ -127,8 +127,6 @@ SMFSource::read_unlocked (Evoral::EventSink& destination, framepos_t DEBUG_TRACE (DEBUG::MidiSourceIO, string_compose ("SMF read_unlocked: start %1 duration %2\n", start, duration)); - _read_data_count = 0; - // Output parameters for read_event (which will allocate scratch in buffer as needed) uint32_t ev_delta_t = 0; uint32_t ev_type = 0; @@ -203,8 +201,6 @@ SMFSource::read_unlocked (Evoral::EventSink& destination, framepos_t break; } - _read_data_count += ev_size; - if (ev_size > scratch_size) { scratch_size = ev_size; } @@ -225,8 +221,6 @@ SMFSource::write_unlocked (MidiRingBuffer& source, framepos_t positi mark_streaming_write_started (); } - _write_data_count = 0; - framepos_t time; Evoral::EventType type; uint32_t size; @@ -335,9 +329,6 @@ SMFSource::append_event_unlocked_beats (const Evoral::Event& ev) Evoral::SMF::append_event_delta(delta_time_ticks, ev.size(), ev.buffer(), event_id); _last_ev_time_beats = ev.time(); - - _write_data_count += ev.size(); - } /** Append an event with a timestamp in frames (framepos_t) */ @@ -385,9 +376,6 @@ SMFSource::append_event_unlocked_frames (const Evoral::Event& ev, fr Evoral::SMF::append_event_delta(delta_time_ticks, ev.size(), ev.buffer(), event_id); _last_ev_time_frames = ev.time(); - - _write_data_count += ev.size(); - } XMLNode& -- cgit v1.2.3