1
0
mirror of https://github.com/ppy/osu.git synced 2026-05-24 02:49:54 +08:00

Remove EquivalentTo() and Equals()

This commit is contained in:
smoogipoo
2020-04-17 17:04:09 +09:00
Unverified
parent eb968d2bdb
commit 69fb984e71
7 changed files with 20 additions and 35 deletions
@@ -68,10 +68,9 @@ namespace osu.Game.Beatmaps.ControlPoints
return newSampleInfo;
}
public override bool EquivalentTo(ControlPoint other) =>
other is SampleControlPoint otherTyped &&
SampleBank == otherTyped.SampleBank && SampleVolume == otherTyped.SampleVolume;
public override bool IsRedundant(ControlPoint existing, double time) => EquivalentTo(existing);
public override bool IsRedundant(ControlPoint existing, double time)
=> existing is SampleControlPoint existingSample
&& SampleBank == existingSample.SampleBank
&& SampleVolume == existingSample.SampleVolume;
}
}