diff options
author | Jesse Plamondon-Willard <Pathoschild@users.noreply.github.com> | 2021-12-04 15:55:16 -0500 |
---|---|---|
committer | Jesse Plamondon-Willard <Pathoschild@users.noreply.github.com> | 2021-12-04 15:55:16 -0500 |
commit | 711e17a4f99af29177fb250b24868b6e655dacb7 (patch) | |
tree | 5972a3ae3e2d5d1d03336d68bcd1fad3f4390177 /src/SMAPI/Utilities | |
parent | 1d7340f598436df705cf01c00ad1b33f70c60c72 (diff) | |
download | SMAPI-711e17a4f99af29177fb250b24868b6e655dacb7.tar.gz SMAPI-711e17a4f99af29177fb250b24868b6e655dacb7.tar.bz2 SMAPI-711e17a4f99af29177fb250b24868b6e655dacb7.zip |
suppress non-applicable code warnings
Diffstat (limited to 'src/SMAPI/Utilities')
-rw-r--r-- | src/SMAPI/Utilities/Keybind.cs | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/src/SMAPI/Utilities/Keybind.cs b/src/SMAPI/Utilities/Keybind.cs index dd8d2861..87b867a9 100644 --- a/src/SMAPI/Utilities/Keybind.cs +++ b/src/SMAPI/Utilities/Keybind.cs @@ -105,7 +105,9 @@ namespace StardewModdingAPI.Utilities /// <summary>Get the keybind state relative to the previous tick.</summary> public SButtonState GetState() { +#pragma warning disable CS0618 // Type or member is obsolete: deliberate call to GetButtonState() for unit tests SButtonState[] states = this.Buttons.Select(this.GetButtonState).Distinct().ToArray(); +#pragma warning restore CS0618 // single state if (states.Length == 1) |