1
0
mirror of https://github.com/ppy/osu.git synced 2025-01-13 22:22:55 +08:00

Simplify comparator

This commit is contained in:
Dean Herbert 2017-07-19 18:01:47 +09:00
parent 35157ca6b8
commit a01209cfe0

View File

@ -14,11 +14,6 @@ namespace osu.Game.Beatmaps.ControlPoints
public int CompareTo(ControlPoint other) => Time.CompareTo(other.Time);
public bool Equals(ControlPoint other)
{
if (ReferenceEquals(null, other)) return false;
if (ReferenceEquals(this, other)) return true;
return Time.Equals(other.Time);
}
public bool Equals(ControlPoint other) => Time.Equals(other?.Time);
}
}