mirror of
https://github.com/ppy/osu.git
synced 2025-01-13 22:22:55 +08:00
Simplify comparator
This commit is contained in:
parent
35157ca6b8
commit
a01209cfe0
@ -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);
|
||||
}
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user