diff options
author | David Robillard <d@drobilla.net> | 2008-05-12 23:34:35 +0000 |
---|---|---|
committer | David Robillard <d@drobilla.net> | 2008-05-12 23:34:35 +0000 |
commit | bded96269f8b3fdd5d7f7a7d830c9e353dae3eb2 (patch) | |
tree | d7a802c86e13d4cd813dfad73d79ca5bebee2033 /libs | |
parent | 6fb1ab31574e812d882555d8e7ac81549c1099c4 (diff) |
Remove junk from MidiModel::write_to
git-svn-id: svn://localhost/ardour2/branches/3.0@3341 d708f5d6-7413-0410-9779-e7cbd77b26cf
Diffstat (limited to 'libs')
-rw-r--r-- | libs/ardour/midi_model.cc | 20 |
1 files changed, 0 insertions, 20 deletions
diff --git a/libs/ardour/midi_model.cc b/libs/ardour/midi_model.cc index a85d00f49e..10e8991805 100644 --- a/libs/ardour/midi_model.cc +++ b/libs/ardour/midi_model.cc @@ -893,34 +893,14 @@ struct EventTimeComparator { */ bool MidiModel::write_to(boost::shared_ptr<MidiSource> source) { - /* - EventTimeComparator comp; - typedef std::priority_queue< - const MIDI::Event*, - std::deque<MIDI::Event>, - EventTimeComparator> MidiEvents; - - MidiEvents events(comp); - */ - read_lock(); const NoteMode old_note_mode = _note_mode; _note_mode = Sustained; for (const_iterator i = begin(); i != end(); ++i) { - //events.push(*i); source->append_event_unlocked(Frames, *i); } - - /* - // TODO: As of now, this is still necessary, because there are some events appended whose - // times are earlier than the preceding events - while(!events.empty()) { - source->append_event_unlocked(Frames, events.top()); - events.pop(); - } - */ _note_mode = old_note_mode; |