From 88c441653f144a1b7ac7d80aac5a2302497c0cc2 Mon Sep 17 00:00:00 2001 From: Dennis Dyall Date: Wed, 7 Aug 2024 23:52:36 +0200 Subject: [PATCH] Removed unused usings: example projects and tests --- .../Fido2SampleCode/KeyCollector/Fido2KeyCollectorOperation.cs | 2 -- .../examples/Fido2SampleCode/Run/Fido2MainMenuItem.cs | 2 -- Yubico.YubiKey/examples/Fido2SampleCode/Run/Fido2SampleGui.cs | 1 - Yubico.YubiKey/examples/Fido2SampleCode/Run/SampleStart.cs | 1 - .../OathSampleCode/YubiKeyOperations/ResetApplication.cs | 1 - Yubico.YubiKey/examples/PivSampleCode/Run/PivMainMenuItem.cs | 2 -- Yubico.YubiKey/examples/PivSampleCode/Run/SampleStart.cs | 2 -- .../examples/PivSampleCode/YubiKeyOperations/PinOnlyMode.cs | 1 - Yubico.YubiKey/examples/SharedSampleCode/Menu/MessageType.cs | 2 -- .../SharedSampleCode/YubiKeyOperations/ChooseYubiKey.cs | 1 - .../SharedSampleCode/YubiKeyOperations/ListYubiKeys.cs | 1 - .../U2fSampleCode/KeyCollector/U2fKeyCollectorOperation.cs | 2 -- Yubico.YubiKey/examples/U2fSampleCode/Run/SampleStart.cs | 2 -- Yubico.YubiKey/examples/U2fSampleCode/Run/U2fMainMenuItem.cs | 2 -- .../examples/U2fSampleCode/YubiKeyOperations/U2fReset.cs | 1 - Yubico.YubiKey/tests/sandbox/Converters/Base16Bytes.cs | 1 - Yubico.YubiKey/tests/sandbox/Converters/ModHexBytes.cs | 1 - Yubico.YubiKey/tests/sandbox/Plugins/DavidPlugin.cs | 1 - Yubico.YubiKey/tests/sandbox/Plugins/EventManagerPlugin.cs | 1 - Yubico.YubiKey/tests/sandbox/Plugins/OathPlugin.cs | 2 -- Yubico.YubiKey/tests/sandbox/Plugins/Otp/Delete.cs | 1 - Yubico.YubiKey/tests/sandbox/Plugins/Otp/Static.cs | 1 - Yubico.YubiKey/tests/sandbox/Plugins/Otp/UpdateSlot.cs | 1 - Yubico.YubiKey/tests/sandbox/Plugins/Scp03Plugin.cs | 1 - .../Yubico/YubiKey/TestUtilities/BadAttestationPairs.cs | 3 --- .../utilities/Yubico/YubiKey/TestUtilities/DeviceReset.cs | 1 - .../utilities/Yubico/YubiKey/TestUtilities/SelectSupport.cs | 1 - .../YubiKey/TestUtilities/SimpleIntegrationTestConnection.cs | 1 - 28 files changed, 39 deletions(-) diff --git a/Yubico.YubiKey/examples/Fido2SampleCode/KeyCollector/Fido2KeyCollectorOperation.cs b/Yubico.YubiKey/examples/Fido2SampleCode/KeyCollector/Fido2KeyCollectorOperation.cs index 28c74d78..1e2fb8cc 100644 --- a/Yubico.YubiKey/examples/Fido2SampleCode/KeyCollector/Fido2KeyCollectorOperation.cs +++ b/Yubico.YubiKey/examples/Fido2SampleCode/KeyCollector/Fido2KeyCollectorOperation.cs @@ -12,8 +12,6 @@ // See the License for the specific language governing permissions and // limitations under the License. -using System; - namespace Yubico.YubiKey.Sample.Fido2SampleCode { public enum Fido2KeyCollectorOperation diff --git a/Yubico.YubiKey/examples/Fido2SampleCode/Run/Fido2MainMenuItem.cs b/Yubico.YubiKey/examples/Fido2SampleCode/Run/Fido2MainMenuItem.cs index e4125299..0cd590bc 100644 --- a/Yubico.YubiKey/examples/Fido2SampleCode/Run/Fido2MainMenuItem.cs +++ b/Yubico.YubiKey/examples/Fido2SampleCode/Run/Fido2MainMenuItem.cs @@ -12,8 +12,6 @@ // See the License for the specific language governing permissions and // limitations under the License. -using System; - namespace Yubico.YubiKey.Sample.Fido2SampleCode { public enum Fido2MainMenuItem diff --git a/Yubico.YubiKey/examples/Fido2SampleCode/Run/Fido2SampleGui.cs b/Yubico.YubiKey/examples/Fido2SampleCode/Run/Fido2SampleGui.cs index f7d830a2..bdbd1b3e 100644 --- a/Yubico.YubiKey/examples/Fido2SampleCode/Run/Fido2SampleGui.cs +++ b/Yubico.YubiKey/examples/Fido2SampleCode/Run/Fido2SampleGui.cs @@ -18,7 +18,6 @@ using System.Threading; using System.Threading.Tasks; using System.Windows.Forms; -using Yubico.YubiKey; using Yubico.YubiKey.Sample.SharedCode; namespace Yubico.YubiKey.Sample.Fido2SampleCode diff --git a/Yubico.YubiKey/examples/Fido2SampleCode/Run/SampleStart.cs b/Yubico.YubiKey/examples/Fido2SampleCode/Run/SampleStart.cs index f8589085..d8fd5e9e 100644 --- a/Yubico.YubiKey/examples/Fido2SampleCode/Run/SampleStart.cs +++ b/Yubico.YubiKey/examples/Fido2SampleCode/Run/SampleStart.cs @@ -13,7 +13,6 @@ // limitations under the License. using System; -using Yubico.YubiKey.Sample.SharedCode; namespace Yubico.YubiKey.Sample.Fido2SampleCode { diff --git a/Yubico.YubiKey/examples/OathSampleCode/YubiKeyOperations/ResetApplication.cs b/Yubico.YubiKey/examples/OathSampleCode/YubiKeyOperations/ResetApplication.cs index 82f16a29..4a98a770 100644 --- a/Yubico.YubiKey/examples/OathSampleCode/YubiKeyOperations/ResetApplication.cs +++ b/Yubico.YubiKey/examples/OathSampleCode/YubiKeyOperations/ResetApplication.cs @@ -13,7 +13,6 @@ // limitations under the License. using Yubico.YubiKey.Oath; -using Yubico.YubiKey.Sample.SharedCode; namespace Yubico.YubiKey.Sample.OathSampleCode { diff --git a/Yubico.YubiKey/examples/PivSampleCode/Run/PivMainMenuItem.cs b/Yubico.YubiKey/examples/PivSampleCode/Run/PivMainMenuItem.cs index 4c99fc3f..b4423a1b 100644 --- a/Yubico.YubiKey/examples/PivSampleCode/Run/PivMainMenuItem.cs +++ b/Yubico.YubiKey/examples/PivSampleCode/Run/PivMainMenuItem.cs @@ -12,8 +12,6 @@ // See the License for the specific language governing permissions and // limitations under the License. -using System; - namespace Yubico.YubiKey.Sample.PivSampleCode { public enum PivMainMenuItem diff --git a/Yubico.YubiKey/examples/PivSampleCode/Run/SampleStart.cs b/Yubico.YubiKey/examples/PivSampleCode/Run/SampleStart.cs index 6aee3b22..e24a2a2d 100644 --- a/Yubico.YubiKey/examples/PivSampleCode/Run/SampleStart.cs +++ b/Yubico.YubiKey/examples/PivSampleCode/Run/SampleStart.cs @@ -12,8 +12,6 @@ // See the License for the specific language governing permissions and // limitations under the License. -using System; - namespace Yubico.YubiKey.Sample.PivSampleCode { internal sealed class StartProgram diff --git a/Yubico.YubiKey/examples/PivSampleCode/YubiKeyOperations/PinOnlyMode.cs b/Yubico.YubiKey/examples/PivSampleCode/YubiKeyOperations/PinOnlyMode.cs index c3c67e4e..81cf6702 100644 --- a/Yubico.YubiKey/examples/PivSampleCode/YubiKeyOperations/PinOnlyMode.cs +++ b/Yubico.YubiKey/examples/PivSampleCode/YubiKeyOperations/PinOnlyMode.cs @@ -14,7 +14,6 @@ using System; using Yubico.YubiKey.Piv; -using Yubico.YubiKey.Sample.SharedCode; namespace Yubico.YubiKey.Sample.PivSampleCode { diff --git a/Yubico.YubiKey/examples/SharedSampleCode/Menu/MessageType.cs b/Yubico.YubiKey/examples/SharedSampleCode/Menu/MessageType.cs index 818e0a7e..b835ee86 100644 --- a/Yubico.YubiKey/examples/SharedSampleCode/Menu/MessageType.cs +++ b/Yubico.YubiKey/examples/SharedSampleCode/Menu/MessageType.cs @@ -12,8 +12,6 @@ // See the License for the specific language governing permissions and // limitations under the License. -using System; - namespace Yubico.YubiKey.Sample.SharedCode { // When calling SampleMenu.WriteMessage, pass in one of these enum values as diff --git a/Yubico.YubiKey/examples/SharedSampleCode/YubiKeyOperations/ChooseYubiKey.cs b/Yubico.YubiKey/examples/SharedSampleCode/YubiKeyOperations/ChooseYubiKey.cs index 072e4199..669dcd35 100644 --- a/Yubico.YubiKey/examples/SharedSampleCode/YubiKeyOperations/ChooseYubiKey.cs +++ b/Yubico.YubiKey/examples/SharedSampleCode/YubiKeyOperations/ChooseYubiKey.cs @@ -14,7 +14,6 @@ using System; using System.Collections.Generic; -using System.Globalization; using System.Linq; namespace Yubico.YubiKey.Sample.SharedCode diff --git a/Yubico.YubiKey/examples/SharedSampleCode/YubiKeyOperations/ListYubiKeys.cs b/Yubico.YubiKey/examples/SharedSampleCode/YubiKeyOperations/ListYubiKeys.cs index ff0b8004..008b26d2 100644 --- a/Yubico.YubiKey/examples/SharedSampleCode/YubiKeyOperations/ListYubiKeys.cs +++ b/Yubico.YubiKey/examples/SharedSampleCode/YubiKeyOperations/ListYubiKeys.cs @@ -15,7 +15,6 @@ using System.Collections.Generic; using System.Globalization; using System.Linq; -using Yubico.YubiKey; namespace Yubico.YubiKey.Sample.SharedCode { diff --git a/Yubico.YubiKey/examples/U2fSampleCode/KeyCollector/U2fKeyCollectorOperation.cs b/Yubico.YubiKey/examples/U2fSampleCode/KeyCollector/U2fKeyCollectorOperation.cs index 22bab72f..52ff895b 100644 --- a/Yubico.YubiKey/examples/U2fSampleCode/KeyCollector/U2fKeyCollectorOperation.cs +++ b/Yubico.YubiKey/examples/U2fSampleCode/KeyCollector/U2fKeyCollectorOperation.cs @@ -12,8 +12,6 @@ // See the License for the specific language governing permissions and // limitations under the License. -using System; - namespace Yubico.YubiKey.Sample.U2fSampleCode { public enum U2fKeyCollectorOperation diff --git a/Yubico.YubiKey/examples/U2fSampleCode/Run/SampleStart.cs b/Yubico.YubiKey/examples/U2fSampleCode/Run/SampleStart.cs index 646b6f63..3dab1ae2 100644 --- a/Yubico.YubiKey/examples/U2fSampleCode/Run/SampleStart.cs +++ b/Yubico.YubiKey/examples/U2fSampleCode/Run/SampleStart.cs @@ -12,8 +12,6 @@ // See the License for the specific language governing permissions and // limitations under the License. -using System; - namespace Yubico.YubiKey.Sample.U2fSampleCode { internal sealed class StartProgram diff --git a/Yubico.YubiKey/examples/U2fSampleCode/Run/U2fMainMenuItem.cs b/Yubico.YubiKey/examples/U2fSampleCode/Run/U2fMainMenuItem.cs index a1202927..b7b4a9e5 100644 --- a/Yubico.YubiKey/examples/U2fSampleCode/Run/U2fMainMenuItem.cs +++ b/Yubico.YubiKey/examples/U2fSampleCode/Run/U2fMainMenuItem.cs @@ -12,8 +12,6 @@ // See the License for the specific language governing permissions and // limitations under the License. -using System; - namespace Yubico.YubiKey.Sample.U2fSampleCode { public enum U2fMainMenuItem diff --git a/Yubico.YubiKey/examples/U2fSampleCode/YubiKeyOperations/U2fReset.cs b/Yubico.YubiKey/examples/U2fSampleCode/YubiKeyOperations/U2fReset.cs index bc4362d7..ab9af48e 100644 --- a/Yubico.YubiKey/examples/U2fSampleCode/YubiKeyOperations/U2fReset.cs +++ b/Yubico.YubiKey/examples/U2fSampleCode/YubiKeyOperations/U2fReset.cs @@ -13,7 +13,6 @@ // limitations under the License. using System; -using System.Diagnostics; using System.Globalization; using System.Threading; using System.Threading.Tasks; diff --git a/Yubico.YubiKey/tests/sandbox/Converters/Base16Bytes.cs b/Yubico.YubiKey/tests/sandbox/Converters/Base16Bytes.cs index 7054ce2a..acbb7dc0 100644 --- a/Yubico.YubiKey/tests/sandbox/Converters/Base16Bytes.cs +++ b/Yubico.YubiKey/tests/sandbox/Converters/Base16Bytes.cs @@ -12,7 +12,6 @@ // See the License for the specific language governing permissions and // limitations under the License. -using System; using Yubico.Core.Buffers; namespace Yubico.YubiKey.TestApp.Converters diff --git a/Yubico.YubiKey/tests/sandbox/Converters/ModHexBytes.cs b/Yubico.YubiKey/tests/sandbox/Converters/ModHexBytes.cs index 4f70883a..daee9b4d 100644 --- a/Yubico.YubiKey/tests/sandbox/Converters/ModHexBytes.cs +++ b/Yubico.YubiKey/tests/sandbox/Converters/ModHexBytes.cs @@ -12,7 +12,6 @@ // See the License for the specific language governing permissions and // limitations under the License. -using System; using Yubico.Core.Buffers; namespace Yubico.YubiKey.TestApp.Converters diff --git a/Yubico.YubiKey/tests/sandbox/Plugins/DavidPlugin.cs b/Yubico.YubiKey/tests/sandbox/Plugins/DavidPlugin.cs index e882c37b..7d4b52c6 100644 --- a/Yubico.YubiKey/tests/sandbox/Plugins/DavidPlugin.cs +++ b/Yubico.YubiKey/tests/sandbox/Plugins/DavidPlugin.cs @@ -15,7 +15,6 @@ using System; using System.Collections.Generic; using System.Linq; -using System.Net.Security; using System.Text; using Yubico.YubiKey.YubiHsmAuth; using Yubico.YubiKey.YubiHsmAuth.Commands; diff --git a/Yubico.YubiKey/tests/sandbox/Plugins/EventManagerPlugin.cs b/Yubico.YubiKey/tests/sandbox/Plugins/EventManagerPlugin.cs index 00c97bf0..01293b04 100644 --- a/Yubico.YubiKey/tests/sandbox/Plugins/EventManagerPlugin.cs +++ b/Yubico.YubiKey/tests/sandbox/Plugins/EventManagerPlugin.cs @@ -13,7 +13,6 @@ // limitations under the License. using System; -using System.Threading; using Microsoft.Extensions.Logging; using Serilog; using Serilog.Core; diff --git a/Yubico.YubiKey/tests/sandbox/Plugins/OathPlugin.cs b/Yubico.YubiKey/tests/sandbox/Plugins/OathPlugin.cs index 036d82fa..8f42eff2 100644 --- a/Yubico.YubiKey/tests/sandbox/Plugins/OathPlugin.cs +++ b/Yubico.YubiKey/tests/sandbox/Plugins/OathPlugin.cs @@ -15,11 +15,9 @@ using System; using System.Collections.Generic; using System.Linq; -using System.Threading; using Microsoft.Extensions.Logging; using Yubico.Core.Logging; using Yubico.YubiKey.Oath; -using Yubico.YubiKey.Oath.Commands; namespace Yubico.YubiKey.TestApp.Plugins { diff --git a/Yubico.YubiKey/tests/sandbox/Plugins/Otp/Delete.cs b/Yubico.YubiKey/tests/sandbox/Plugins/Otp/Delete.cs index 297be176..d2dc3cd1 100644 --- a/Yubico.YubiKey/tests/sandbox/Plugins/Otp/Delete.cs +++ b/Yubico.YubiKey/tests/sandbox/Plugins/Otp/Delete.cs @@ -14,7 +14,6 @@ using System; using Yubico.YubiKey.Otp; -using Yubico.YubiKey.Otp.Operations; namespace Yubico.YubiKey.TestApp.Plugins.Otp { diff --git a/Yubico.YubiKey/tests/sandbox/Plugins/Otp/Static.cs b/Yubico.YubiKey/tests/sandbox/Plugins/Otp/Static.cs index ab6e909b..4e6ecc20 100644 --- a/Yubico.YubiKey/tests/sandbox/Plugins/Otp/Static.cs +++ b/Yubico.YubiKey/tests/sandbox/Plugins/Otp/Static.cs @@ -14,7 +14,6 @@ using System; using System.Collections.Generic; -using System.Linq; using Yubico.YubiKey.Otp; using Yubico.YubiKey.Otp.Commands; using Yubico.YubiKey.Otp.Operations; diff --git a/Yubico.YubiKey/tests/sandbox/Plugins/Otp/UpdateSlot.cs b/Yubico.YubiKey/tests/sandbox/Plugins/Otp/UpdateSlot.cs index a0d5f79a..57b5e0c5 100644 --- a/Yubico.YubiKey/tests/sandbox/Plugins/Otp/UpdateSlot.cs +++ b/Yubico.YubiKey/tests/sandbox/Plugins/Otp/UpdateSlot.cs @@ -13,7 +13,6 @@ // limitations under the License. using System; -using System.Collections.Generic; using Yubico.YubiKey.Otp; namespace Yubico.YubiKey.TestApp.Plugins.Otp diff --git a/Yubico.YubiKey/tests/sandbox/Plugins/Scp03Plugin.cs b/Yubico.YubiKey/tests/sandbox/Plugins/Scp03Plugin.cs index 96811f9f..1bc52904 100644 --- a/Yubico.YubiKey/tests/sandbox/Plugins/Scp03Plugin.cs +++ b/Yubico.YubiKey/tests/sandbox/Plugins/Scp03Plugin.cs @@ -15,7 +15,6 @@ using System; using System.Collections.Generic; using System.Linq; -using System.Text; using Yubico.YubiKey.Piv; using Yubico.YubiKey.Scp03; diff --git a/Yubico.YubiKey/tests/utilities/Yubico/YubiKey/TestUtilities/BadAttestationPairs.cs b/Yubico.YubiKey/tests/utilities/Yubico/YubiKey/TestUtilities/BadAttestationPairs.cs index 4fb74279..dd3f474b 100644 --- a/Yubico.YubiKey/tests/utilities/Yubico/YubiKey/TestUtilities/BadAttestationPairs.cs +++ b/Yubico.YubiKey/tests/utilities/Yubico/YubiKey/TestUtilities/BadAttestationPairs.cs @@ -12,9 +12,6 @@ // See the License for the specific language governing permissions and // limitations under the License. -using System; -using System.Security.Cryptography.X509Certificates; - namespace Yubico.YubiKey.TestUtilities { public static class BadAttestationPairs diff --git a/Yubico.YubiKey/tests/utilities/Yubico/YubiKey/TestUtilities/DeviceReset.cs b/Yubico.YubiKey/tests/utilities/Yubico/YubiKey/TestUtilities/DeviceReset.cs index b32a4ea9..6e2d6cfa 100644 --- a/Yubico.YubiKey/tests/utilities/Yubico/YubiKey/TestUtilities/DeviceReset.cs +++ b/Yubico.YubiKey/tests/utilities/Yubico/YubiKey/TestUtilities/DeviceReset.cs @@ -13,7 +13,6 @@ // limitations under the License. using System; -using System.Linq; using Yubico.YubiKey.Oath; using Yubico.YubiKey.Piv; using Yubico.YubiKey.YubiHsmAuth; diff --git a/Yubico.YubiKey/tests/utilities/Yubico/YubiKey/TestUtilities/SelectSupport.cs b/Yubico.YubiKey/tests/utilities/Yubico/YubiKey/TestUtilities/SelectSupport.cs index ff14692f..262108a2 100644 --- a/Yubico.YubiKey/tests/utilities/Yubico/YubiKey/TestUtilities/SelectSupport.cs +++ b/Yubico.YubiKey/tests/utilities/Yubico/YubiKey/TestUtilities/SelectSupport.cs @@ -13,7 +13,6 @@ // limitations under the License. using System; -using System.Collections.Generic; using System.Globalization; using System.Linq; diff --git a/Yubico.YubiKey/tests/utilities/Yubico/YubiKey/TestUtilities/SimpleIntegrationTestConnection.cs b/Yubico.YubiKey/tests/utilities/Yubico/YubiKey/TestUtilities/SimpleIntegrationTestConnection.cs index 571ebb65..b3dee85d 100644 --- a/Yubico.YubiKey/tests/utilities/Yubico/YubiKey/TestUtilities/SimpleIntegrationTestConnection.cs +++ b/Yubico.YubiKey/tests/utilities/Yubico/YubiKey/TestUtilities/SimpleIntegrationTestConnection.cs @@ -13,7 +13,6 @@ // limitations under the License. using System; -using Yubico.YubiKey; namespace Yubico.YubiKey.TestUtilities {