From 7ad498cb2921fca0db5eb906d76019a5beaea750 Mon Sep 17 00:00:00 2001 From: Dean Herbert Date: Wed, 8 Nov 2017 14:45:01 +0900 Subject: [PATCH] Remove unused puzzle pieces --- osu.Game/Screens/Menu/ButtonSystem.cs | 2 -- osu.Game/Screens/Menu/OsuLogo.cs | 24 ------------------------ 2 files changed, 26 deletions(-) diff --git a/osu.Game/Screens/Menu/ButtonSystem.cs b/osu.Game/Screens/Menu/ButtonSystem.cs index 6f9b77e18e..33d118d12e 100644 --- a/osu.Game/Screens/Menu/ButtonSystem.cs +++ b/osu.Game/Screens/Menu/ButtonSystem.cs @@ -326,8 +326,6 @@ namespace osu.Game.Screens.Menu private bool trackingPosition; - public void SetLogoTracking(bool value) => trackingPosition = value; - protected override void Update() { //if (OsuGame.IdleTime > 6000 && State != MenuState.Exit) diff --git a/osu.Game/Screens/Menu/OsuLogo.cs b/osu.Game/Screens/Menu/OsuLogo.cs index 297076a78b..5a5b90b3fb 100644 --- a/osu.Game/Screens/Menu/OsuLogo.cs +++ b/osu.Game/Screens/Menu/OsuLogo.cs @@ -224,27 +224,6 @@ namespace osu.Game.Screens.Menu ripple.Texture = textures.Get(@"Menu/logo"); } - private double? reservationEndTime; - private Action reservationCallback; - - private bool canFulfillReservation => !reservationEndTime.HasValue || reservationEndTime <= Time.Current; - - public void RequestUsage(Action callback) - { - reservationCallback = callback; - } - - private void fulfillReservation() - { - reservationCallback(this); - reservationCallback = null; - } - - public void ReserveFor(float duration) - { - reservationEndTime = Time.Current + duration; - } - private int lastBeatIndex; protected override void OnNewBeat(int beatIndex, TimingControlPoint timingPoint, EffectControlPoint effectPoint, TrackAmplitudes amplitudes) @@ -311,9 +290,6 @@ namespace osu.Game.Screens.Menu { triangles.Velocity = paused_velocity; } - - if (reservationCallback != null && canFulfillReservation) - fulfillReservation(); } private bool interactive => Action != null && Alpha > 0.2f;