From 9b7ac3b3db8ac075be9010d533875d0588c33785 Mon Sep 17 00:00:00 2001 From: mohamed Date: Wed, 4 Feb 2015 22:36:34 +0100 Subject: [PATCH] cleaning up event ordering function --- plugins/MidiExport/MidiFile.hpp | 14 +------------- 1 file changed, 1 insertion(+), 13 deletions(-) diff --git a/plugins/MidiExport/MidiFile.hpp b/plugins/MidiExport/MidiFile.hpp index 33955e10a..0e2bfbe5b 100644 --- a/plugins/MidiExport/MidiFile.hpp +++ b/plugins/MidiExport/MidiFile.hpp @@ -186,19 +186,7 @@ struct Event // events are sorted by their time inline bool operator < (const Event& b) const { - if (this->time < b.time) return true; -#if 0 - if (this->type < b.type) return true; - if (this->pitch < b.pitch) return true; - if (this->duration < b.duration) return true; - if (this->volume < b.volume) return true; - #if 1 - if (this->programNumber < b.programNumber) return true; - if (this->channel < b.channel) return true; - if (this->trackName < b.trackName) return true; - #endif -#endif - return false; + return this->time < b.time; } };