Remove unnecessary field storage

This commit is contained in:
Dean Herbert 2020-11-02 14:49:25 +09:00
parent 73b290aca3
commit fb105a1e9c
1 changed files with 3 additions and 4 deletions

View File

@ -59,8 +59,6 @@ public class OsuGameBase : Framework.Game, ICanAcceptFiles
protected ScoreManager ScoreManager;
protected ScorePerformanceManager ScorePerformanceManager;
protected BeatmapDifficultyManager DifficultyManager;
protected SkinManager SkinManager;
@ -231,8 +229,9 @@ List<ScoreInfo> getBeatmapScores(BeatmapSetInfo set)
dependencies.Cache(DifficultyManager = new BeatmapDifficultyManager());
AddInternal(DifficultyManager);
dependencies.Cache(ScorePerformanceManager = new ScorePerformanceManager());
AddInternal(ScorePerformanceManager);
var scorePerformanceManager = new ScorePerformanceManager();
dependencies.Cache(scorePerformanceManager);
AddInternal(scorePerformanceManager);
dependencies.Cache(KeyBindingStore = new KeyBindingStore(contextFactory, RulesetStore));
dependencies.Cache(SettingsStore = new SettingsStore(contextFactory));