1
0
mirror of https://github.com/ppy/osu.git synced 2025-02-12 20:23:06 +08:00

Merge pull request #16643 from peppy/ruleset-silly-ctor

Remove pointless constructor in `RulesetInfo`
This commit is contained in:
Dan Balasescu 2022-01-27 16:41:38 +09:00 committed by GitHub
commit 81ba1558de
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 1 additions and 9 deletions

View File

@ -114,7 +114,7 @@ namespace osu.Game.Tests.Database
}
protected static RulesetInfo CreateRuleset() =>
new RulesetInfo(0, "osu!", "osu", true);
new RulesetInfo("osu", "osu!", string.Empty, 0) { Available = true };
private class RealmTestGame : Framework.Game
{

View File

@ -37,14 +37,6 @@ namespace osu.Game.Rulesets
{
}
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)