Remove multiple caching

This commit is contained in:
smoogipoo 2018-08-08 15:38:09 +09:00
parent b2ab46e312
commit bfbe00e6ec

View File

@ -155,9 +155,6 @@ namespace osu.Game
dependencies.CacheAs(ruleset);
dependencies.CacheAs<IBindable<RulesetInfo>>(ruleset);
dependencies.CacheAs(selectedMods);
dependencies.CacheAs<IBindable<IEnumerable<Mod>>>(selectedMods);
// bind config int to database RulesetInfo
configRuleset = LocalConfig.GetBindable<int>(OsuSetting.Ruleset);
ruleset.Value = RulesetStore.GetRuleset(configRuleset.Value) ?? RulesetStore.AvailableRulesets.First();