1
0
mirror of https://github.com/ppy/osu.git synced 2024-11-06 06:57:39 +08:00

Remove redundant code

This commit is contained in:
TocoToucan 2018-03-16 20:42:05 +03:00
parent 34dc8e7375
commit 604e725f3f
3 changed files with 6 additions and 6 deletions

View File

@ -68,13 +68,14 @@ namespace osu.Game.Input.Bindings
DecreaseVolume,
[Description("Toggle mute")]
ToggleMute,
[Description("Take screenshot")]
TakeScreenshot,
// In-Game Keybindings
[Description("Skip Cutscene")]
SkipCutscene,
[Description("Quick Retry (Hold)")]
QuickRetry,
[Description("Take screenshot")]
TakeScreenshot
}
}

View File

@ -81,8 +81,6 @@ namespace osu.Game
private Bindable<int> configRuleset;
public Bindable<RulesetInfo> Ruleset = new Bindable<RulesetInfo>();
private ScreenshotManager screenshotManager;
private Bindable<int> configSkin;
private readonly string[] args;
@ -220,7 +218,7 @@ namespace osu.Game
},
mainContent = new Container { RelativeSizeAxes = Axes.Both },
overlayContent = new Container { RelativeSizeAxes = Axes.Both, Depth = float.MinValue },
screenshotManager = new ScreenshotManager()
new ScreenshotManager()
});
loadComponentSingleFile(screenStack = new Loader(), d =>

View File

@ -1,5 +1,6 @@
// Copyright (c) 2007-2018 ppy Pty Ltd <contact@ppy.sh>.
// Licensed under the MIT Licence - https://raw.githubusercontent.com/ppy/osu/master/LICENCE
using osu.Framework.Allocation;
using osu.Framework.Graphics;
using osu.Game.Configuration;
@ -25,7 +26,7 @@ namespace osu.Game.Overlays.Settings.Sections.Graphics
LabelText = "Rotate cursor when dragging",
Bindable = config.GetBindable<bool>(OsuSetting.CursorRotation)
},
new SettingsEnumDropdown<ScreenshotFormat>()
new SettingsEnumDropdown<ScreenshotFormat>
{
LabelText = "Screenshot format",
Bindable = config.GetBindable<ScreenshotFormat>(OsuSetting.ScreenshotFormat)