From d1439587d917253e29108a7f4f052980a4a177eb Mon Sep 17 00:00:00 2001 From: Max Kopjev Date: Wed, 3 Jan 2024 21:19:50 +0300 Subject: [PATCH] Revert "Add copy constructor for KeyboardListener." --- .../InputListeners/KeyboardListener.cs | 15 --------------- 1 file changed, 15 deletions(-) diff --git a/src/cs/MonoGame.Extended.Input/InputListeners/KeyboardListener.cs b/src/cs/MonoGame.Extended.Input/InputListeners/KeyboardListener.cs index 4c207aca..9fc85a0f 100644 --- a/src/cs/MonoGame.Extended.Input/InputListeners/KeyboardListener.cs +++ b/src/cs/MonoGame.Extended.Input/InputListeners/KeyboardListener.cs @@ -27,21 +27,6 @@ namespace MonoGame.Extended.Input.InputListeners RepeatDelay = settings.RepeatDelayMilliseconds; } - /// - /// Copy constructor - /// - /// Listener, from which will copy inner state - public KeyboardListener(KeyboardListener keyboardListener) - { - RepeatPress = keyboardListener.RepeatPress; - InitialDelay = keyboardListener.InitialDelay; - RepeatDelay = keyboardListener.RepeatDelay; - _keysValues = keyboardListener._keysValues; - _isInitial = keyboardListener._isInitial; - _previousKey = keyboardListener._previousKey; - _previousState = keyboardListener._previousState; - } - public bool RepeatPress { get; } public int InitialDelay { get; } public int RepeatDelay { get; }