Remove unused read/write data count code.
[ardour.git] / libs / ardour / midi_diskstream.cc
index f252c8741eb33f8bc23118ef6e9464a0bac93478..d9e7c54f2d3df4f5d2f230bdae2ce570cc185d1b 100644 (file)
@@ -769,8 +769,6 @@ MidiDiskstream::read (framepos_t& start, framecnt_t dur, bool reversed)
 
                g_atomic_int_add(&_frames_written_to_ringbuffer, this_read);
 
-               _read_data_count = _playlist->read_data_count();
-
                if (reversed) {
 
                        // Swap note ons with note offs here.  etc?
@@ -873,8 +871,6 @@ MidiDiskstream::do_flush (RunContext /*context*/, bool force_flush)
 
        assert (!destructive());
 
-       _write_data_count = 0;
-
        total = _session.transport_frame() - _write_source->last_write_end();
 
        if (total == 0 ||