Remove ValidTypes from databased stored; explicitly expose query methods instead

This commit is contained in:
Dean Herbert
2017-10-16 14:47:33 +09:00
parent 1a16784db9
commit 7049a73490
6 changed files with 0 additions and 32 deletions

View File

@ -109,8 +109,6 @@ namespace osu.Game.Rulesets
ID = ruleset.LegacyID
};
protected override Type[] ValidTypes => new[] { typeof(RulesetInfo) };
public RulesetInfo GetRuleset(int id) => Connection.RulesetInfo.First(r => r.ID == id);
public RulesetInfo QueryRulesetInfo(Func<RulesetInfo, bool> query)

View File

@ -1,7 +1,6 @@
// Copyright (c) 2007-2017 ppy Pty Ltd <contact@ppy.sh>.
// Licensed under the MIT Licence - https://raw.githubusercontent.com/ppy/osu/master/LICENCE
using System;
using System.Collections.Generic;
using System.IO;
using osu.Framework.Platform;
@ -147,7 +146,5 @@ namespace osu.Game.Rulesets.Scoring
protected override void Prepare(bool reset = false)
{
}
protected override Type[] ValidTypes => new[] { typeof(Score) };
}
}