Remove redundant arguments

This commit is contained in:
Dean Herbert 2018-01-29 15:05:07 +09:00
parent fc11cac5a0
commit 6e0cb1adb3
3 changed files with 3 additions and 3 deletions

View File

@ -111,7 +111,7 @@ private void load(FrameworkConfigManager frameworkConfig)
Task.Run(() => BeatmapManager.Import(paths.ToArray()));
}
dependencies.CacheAs<OsuGame>(this);
dependencies.CacheAs(this);
configRuleset = LocalConfig.GetBindable<int>(OsuSetting.Ruleset);
Ruleset.Value = RulesetStore.GetRuleset(configRuleset.Value) ?? RulesetStore.AvailableRulesets.First();

View File

@ -95,7 +95,7 @@ private void load()
dependencies.Cache(new LargeTextureStore(new RawTextureLoaderStore(new NamespacedResourceStore<byte[]>(Resources, @"Textures"))));
dependencies.CacheAs<OsuGameBase>(this);
dependencies.CacheAs(this);
dependencies.Cache(LocalConfig);
runMigrations();

View File

@ -181,7 +181,7 @@ protected SongSelect()
[BackgroundDependencyLoader(permitNulls: true)]
private void load(BeatmapManager beatmaps, AudioManager audio, DialogOverlay dialog, OsuGame osu, OsuColour colours)
{
dependencies.CacheAs<SongSelect>(this);
dependencies.CacheAs(this);
if (Footer != null)
{