From 11b59b0a6509bcb91097713f96005cdc2e8d0853 Mon Sep 17 00:00:00 2001 From: RoosterDragon Date: Sat, 18 Mar 2023 12:58:54 +0000 Subject: [PATCH] Fix RCS1132 --- .editorconfig | 3 +++ OpenRA.Mods.Common/Widgets/HotkeyEntryWidget.cs | 5 ----- 2 files changed, 3 insertions(+), 5 deletions(-) diff --git a/.editorconfig b/.editorconfig index 4d110ef2b5..3ac91b1148 100644 --- a/.editorconfig +++ b/.editorconfig @@ -1025,6 +1025,9 @@ dotnet_diagnostic.RCS1113.severity = warning # Bitwise operation on enum without Flags attribute. dotnet_diagnostic.RCS1130.severity = warning +# Remove redundant overriding member. +dotnet_diagnostic.RCS1132.severity = warning + # Remove redundant Dispose/Close call. dotnet_diagnostic.RCS1133.severity = warning diff --git a/OpenRA.Mods.Common/Widgets/HotkeyEntryWidget.cs b/OpenRA.Mods.Common/Widgets/HotkeyEntryWidget.cs index 440b4c6f22..b6aa9a0ed3 100644 --- a/OpenRA.Mods.Common/Widgets/HotkeyEntryWidget.cs +++ b/OpenRA.Mods.Common/Widgets/HotkeyEntryWidget.cs @@ -44,11 +44,6 @@ namespace OpenRA.Mods.Common.Widgets VisualHeight = widget.VisualHeight; } - public override bool TakeKeyboardFocus() - { - return base.TakeKeyboardFocus(); - } - public override bool YieldKeyboardFocus() { OnLoseFocus();