mirror of
https://github.com/ppy/osu.git
synced 2024-12-14 05:32:54 +08:00
Remove more unused code
This commit is contained in:
parent
a2a7aa708f
commit
daeba63242
@ -175,20 +175,6 @@ namespace osu.Game.Overlays.Settings.Sections.Graphics
|
||||
preview.Expire();
|
||||
}
|
||||
|
||||
private ScheduledDelegate delayedApplication;
|
||||
|
||||
private void applyWithDelay(Action func, bool firstRun = true)
|
||||
{
|
||||
if (!firstRun && !GetContainingInputManager().CurrentState.Mouse.IsPressed(MouseButton.Left))
|
||||
{
|
||||
func();
|
||||
return;
|
||||
}
|
||||
|
||||
delayedApplication?.Cancel();
|
||||
delayedApplication = Scheduler.AddDelayed(() => applyWithDelay(func, false), 250);
|
||||
}
|
||||
|
||||
private IReadOnlyList<Size> getResolutions()
|
||||
{
|
||||
var resolutions = new List<Size> { new Size(9999, 9999) };
|
||||
|
Loading…
Reference in New Issue
Block a user