1
0
mirror of https://github.com/ppy/osu.git synced 2025-01-13 01:53:00 +08:00

Remove unnecessary field storage

This commit is contained in:
Dean Herbert 2020-11-02 14:49:25 +09:00
parent 73b290aca3
commit fb105a1e9c

View File

@ -59,8 +59,6 @@ namespace osu.Game
protected ScoreManager ScoreManager; protected ScoreManager ScoreManager;
protected ScorePerformanceManager ScorePerformanceManager;
protected BeatmapDifficultyManager DifficultyManager; protected BeatmapDifficultyManager DifficultyManager;
protected SkinManager SkinManager; protected SkinManager SkinManager;
@ -231,8 +229,9 @@ namespace osu.Game
dependencies.Cache(DifficultyManager = new BeatmapDifficultyManager()); dependencies.Cache(DifficultyManager = new BeatmapDifficultyManager());
AddInternal(DifficultyManager); AddInternal(DifficultyManager);
dependencies.Cache(ScorePerformanceManager = new ScorePerformanceManager()); var scorePerformanceManager = new ScorePerformanceManager();
AddInternal(ScorePerformanceManager); dependencies.Cache(scorePerformanceManager);
AddInternal(scorePerformanceManager);
dependencies.Cache(KeyBindingStore = new KeyBindingStore(contextFactory, RulesetStore)); dependencies.Cache(KeyBindingStore = new KeyBindingStore(contextFactory, RulesetStore));
dependencies.Cache(SettingsStore = new SettingsStore(contextFactory)); dependencies.Cache(SettingsStore = new SettingsStore(contextFactory));