diff options
author | David Robillard <d@drobilla.net> | 2016-12-04 13:20:15 -0500 |
---|---|---|
committer | David Robillard <d@drobilla.net> | 2016-12-04 15:10:05 -0500 |
commit | 7d2ed46b63821cc9d9bdd5d2366eaaf00726d3fc (patch) | |
tree | 4d6213a2b5d8cab19427117386c9ef169706d75e /libs/evoral/src/Note.cpp | |
parent | 11464bfb183b56ec3aafae9c173e78a352929bd9 (diff) |
Remove dead/annoying/unsafe code
Note the old Note::operator= was unsafe, since it made shallow copies of the on
and off events, which results in a double delete of events when the notes are
destructed.
Diffstat (limited to 'libs/evoral/src/Note.cpp')
-rw-r--r-- | libs/evoral/src/Note.cpp | 18 |
1 files changed, 0 insertions, 18 deletions
diff --git a/libs/evoral/src/Note.cpp b/libs/evoral/src/Note.cpp index 52a4d6335b..f2d369d825 100644 --- a/libs/evoral/src/Note.cpp +++ b/libs/evoral/src/Note.cpp @@ -92,24 +92,6 @@ Note<Time>::set_id (event_id_t id) _off_event.set_id (id); } -template<typename Time> -const Note<Time>& -Note<Time>::operator=(const Note<Time>& other) -{ - _on_event = other._on_event; - _off_event = other._off_event; - - assert(time() == other.time()); - assert(end_time() == other.end_time()); - assert(length() == other.length()); - assert(note() == other.note()); - assert(velocity() == other.velocity()); - assert(_on_event.channel() == _off_event.channel()); - assert(channel() == other.channel()); - - return *this; -} - template class Note<Evoral::Beats>; } // namespace Evoral |