mirror of https://github.com/ppy/osu
Remove pointless constructor in `RulesetInfo`
This commit is contained in:
parent
cc0a8db76a
commit
714177cce1
|
@ -114,7 +114,7 @@ protected static BeatmapSetInfo CreateBeatmapSet(RulesetInfo ruleset)
|
|||
}
|
||||
|
||||
protected static RulesetInfo CreateRuleset() =>
|
||||
new RulesetInfo(0, "osu!", "osu", true);
|
||||
new RulesetInfo("osu", "osu!", string.Empty, 0) { Available = true };
|
||||
|
||||
private class RealmTestGame : Framework.Game
|
||||
{
|
||||
|
|
|
@ -37,14 +37,6 @@ public RulesetInfo()
|
|||
{
|
||||
}
|
||||
|
||||
public RulesetInfo(int? onlineID, string name, string shortName, bool available)
|
||||
{
|
||||
OnlineID = onlineID ?? -1;
|
||||
Name = name;
|
||||
ShortName = shortName;
|
||||
Available = available;
|
||||
}
|
||||
|
||||
public bool Available { get; set; }
|
||||
|
||||
public bool Equals(RulesetInfo? other)
|
||||
|
|
Loading…
Reference in New Issue