cleaning up event ordering function

This commit is contained in:
mohamed
2015-02-04 22:36:34 +01:00
parent 826591817a
commit 9b7ac3b3db

View File

@@ -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;
}
};