From 350051569f11efad7a0c0ba8ce9bcbba0203321e Mon Sep 17 00:00:00 2001 From: Paul Davis Date: Mon, 4 May 2020 18:54:40 -0600 Subject: remove empty API and usage This went away when we added RTMidiBuffer. Getting data from MIDI playlists is now completed in one pass, without note trackers --- libs/ardour/ardour/midi_playlist.h | 14 ++------------ libs/ardour/midi_playlist.cc | 10 ---------- libs/ardour/midi_track.cc | 2 -- 3 files changed, 2 insertions(+), 24 deletions(-) (limited to 'libs/ardour') diff --git a/libs/ardour/ardour/midi_playlist.h b/libs/ardour/ardour/midi_playlist.h index 6ba7bea592..7e70707ae2 100644 --- a/libs/ardour/ardour/midi_playlist.h +++ b/libs/ardour/ardour/midi_playlist.h @@ -83,21 +83,11 @@ public: std::set contained_automation(); - /** Clear all note trackers. */ - void reset_note_trackers (); - - /** Resolve all pending notes and clear all note trackers. - * - * @param dst Sink to write note offs to. - * @param time Time stamp of all written note offs. - */ - void resolve_note_trackers (Evoral::EventSink& dst, samplepos_t time); - -protected: + protected: void remove_dependents (boost::shared_ptr region); void region_going_away (boost::weak_ptr region); -private: + private: void dump () const; NoteMode _note_mode; diff --git a/libs/ardour/midi_playlist.cc b/libs/ardour/midi_playlist.cc index b79a90fde6..4dc0d19e6f 100644 --- a/libs/ardour/midi_playlist.cc +++ b/libs/ardour/midi_playlist.cc @@ -111,16 +111,6 @@ struct EventsSortByTimeAndType { } }; -void -MidiPlaylist::reset_note_trackers () -{ -} - -void -MidiPlaylist::resolve_note_trackers (Evoral::EventSink& dst, samplepos_t time) -{ -} - void MidiPlaylist::remove_dependents (boost::shared_ptr region) { diff --git a/libs/ardour/midi_track.cc b/libs/ardour/midi_track.cc index 2e7d063048..81c954bd33 100644 --- a/libs/ardour/midi_track.cc +++ b/libs/ardour/midi_track.cc @@ -495,7 +495,6 @@ MidiTrack::export_stuff (BufferSet& buffers, if (!mpl) { return -2; } - mpl->reset_note_trackers (); // TODO once at start and end ? buffers.get_midi(0).clear(); @@ -517,7 +516,6 @@ MidiTrack::export_stuff (BufferSet& buffers, } bounce_process (buffers, start, nframes, endpoint, include_endpoint, for_export, for_freeze); } - mpl->reset_note_trackers (); /* Add to tracker so that we can resolve at the end of the export (in Session::write_one_track()) */ -- cgit v1.2.3