win32_pthread is relevant for both: MSVC & MINGW
[ardour.git] / libs / ardour / midi_state_tracker.cc
index 99a6cd991ddf624133df12f215b696460d945e5a..73b6fb639e1ea0e1db4823fcdc92449e5863ea44 100644 (file)
@@ -94,18 +94,12 @@ MidiStateTracker::remove (uint8_t note, uint8_t chn)
 }
 
 void
-MidiStateTracker::track (const MidiBuffer::iterator &from, const MidiBuffer::iterator &to, bool& looped)
+MidiStateTracker::track (const MidiBuffer::iterator &from, const MidiBuffer::iterator &to)
 {
-       looped = false;
-
-       // DEBUG_TRACE (PBD::DEBUG::MidiTrackers, string_compose ("%1 track notes, looped = %2\n", this, looped));
+       // DEBUG_TRACE (PBD::DEBUG::MidiTrackers, string_compose ("%1 track notes\n", this));
 
        for (MidiBuffer::iterator i = from; i != to; ++i) {
                const Evoral::MIDIEvent<MidiBuffer::TimeType> ev(*i, false);
-               if (ev.event_type() == LoopEventType) {
-                       looped = true;
-                       continue;
-               }
 
                /* catch AllNotesOff message and turn off all notes
                 */