mirror of
https://github.com/osukey/osukey.git
synced 2025-07-02 00:40:09 +09:00
Remove EquivalentTo() and Equals()
This commit is contained in:
@ -48,12 +48,7 @@ namespace osu.Game.Beatmaps.ControlPoints
|
||||
/// </summary>
|
||||
public double BPM => 60000 / BeatLength;
|
||||
|
||||
public override bool EquivalentTo(ControlPoint other) =>
|
||||
other is TimingControlPoint otherTyped
|
||||
&& TimeSignature == otherTyped.TimeSignature && BeatLength.Equals(otherTyped.BeatLength);
|
||||
|
||||
public override bool IsRedundant(ControlPoint existing, double time) =>
|
||||
EquivalentTo(existing)
|
||||
&& existing.Time == time;
|
||||
// Timing points are never redundant as they can change the time signature.
|
||||
public override bool IsRedundant(ControlPoint existing, double time) => false;
|
||||
}
|
||||
}
|
||||
|
Reference in New Issue
Block a user