mirror of
https://github.com/osukey/osukey.git
synced 2025-08-04 15:16:38 +09:00
Replace hashcode override with local equality comparer
This commit is contained in:
@ -93,12 +93,5 @@ namespace osu.Game.Online.Multiplayer
|
||||
public bool ShouldSerializeapiBeatmap() => false;
|
||||
|
||||
public bool Equals(PlaylistItem other) => ID == other?.ID && BeatmapID == other.BeatmapID && RulesetID == other.RulesetID;
|
||||
|
||||
public override int GetHashCode()
|
||||
{
|
||||
// ReSharper disable NonReadonlyMemberInGetHashCode
|
||||
return HashCode.Combine(ID, BeatmapID, RulesetID);
|
||||
// ReSharper restore NonReadonlyMemberInGetHashCode
|
||||
}
|
||||
}
|
||||
}
|
||||
|
Reference in New Issue
Block a user