From 936bde28a35ef8ea0ba9f4af801c09e8ea6b4bcc Mon Sep 17 00:00:00 2001 From: ekrctb Date: Fri, 16 Apr 2021 13:59:11 +0900 Subject: [PATCH] Remove manual handling of IsActive in RulesetInputManager Now it is supported in framework --- osu.Game/Rulesets/UI/RulesetInputManager.cs | 13 ------------- 1 file changed, 13 deletions(-) diff --git a/osu.Game/Rulesets/UI/RulesetInputManager.cs b/osu.Game/Rulesets/UI/RulesetInputManager.cs index 5ab09f9516..d6f002ea2c 100644 --- a/osu.Game/Rulesets/UI/RulesetInputManager.cs +++ b/osu.Game/Rulesets/UI/RulesetInputManager.cs @@ -2,7 +2,6 @@ // See the LICENCE file in the repository root for full licence text. using System; -using System.Collections.Generic; using System.Linq; using osu.Framework.Allocation; using osu.Framework.Bindables; @@ -11,7 +10,6 @@ using osu.Framework.Graphics.Containers; using osu.Framework.Input; using osu.Framework.Input.Bindings; using osu.Framework.Input.Events; -using osu.Framework.Input.StateChanges; using osu.Framework.Input.StateChanges.Events; using osu.Framework.Input.States; using osu.Game.Configuration; @@ -102,17 +100,6 @@ namespace osu.Game.Rulesets.UI #endregion - // to avoid allocation - private readonly List emptyInputList = new List(); - - protected override List GetPendingInputs() - { - if (replayInputHandler?.IsActive == false) - return emptyInputList; - - return base.GetPendingInputs(); - } - #region Setting application (disables etc.) private Bindable mouseDisabled;