From d33a46307678e1a4c6e1375d92818b41cd478c5c Mon Sep 17 00:00:00 2001 From: Peter Dettman Date: Sat, 15 Apr 2023 19:16:29 +0700 Subject: Code cleanup --- crypto/src/asn1/cmp/NestedMessageContent.cs | 2 -- crypto/src/asn1/cmp/PKIStatusInfo.cs | 2 -- crypto/test/src/test/rsa3/RSA3CertTest.cs | 16 ---------------- 3 files changed, 20 deletions(-) diff --git a/crypto/src/asn1/cmp/NestedMessageContent.cs b/crypto/src/asn1/cmp/NestedMessageContent.cs index b9e62e218..fc73fac1b 100644 --- a/crypto/src/asn1/cmp/NestedMessageContent.cs +++ b/crypto/src/asn1/cmp/NestedMessageContent.cs @@ -23,9 +23,7 @@ namespace Org.BouncyCastle.Asn1.Cmp public static new NestedMessageContent GetInstance(Asn1TaggedObject taggedObject, bool declaredExplicit) { -#pragma warning disable CS0618 // Type or member is obsolete return GetInstance(Asn1Sequence.GetInstance(taggedObject, declaredExplicit)); -#pragma warning restore CS0618 // Type or member is obsolete } public NestedMessageContent(PkiMessage msg) diff --git a/crypto/src/asn1/cmp/PKIStatusInfo.cs b/crypto/src/asn1/cmp/PKIStatusInfo.cs index fe5cc718c..17473efc8 100644 --- a/crypto/src/asn1/cmp/PKIStatusInfo.cs +++ b/crypto/src/asn1/cmp/PKIStatusInfo.cs @@ -20,9 +20,7 @@ namespace Org.BouncyCastle.Asn1.Cmp public static PkiStatusInfo GetInstance(Asn1TaggedObject obj, bool isExplicit) { -#pragma warning disable CS0618 // Type or member is obsolete return GetInstance(Asn1Sequence.GetInstance(obj, isExplicit)); -#pragma warning restore CS0618 // Type or member is obsolete } private readonly DerInteger status; diff --git a/crypto/test/src/test/rsa3/RSA3CertTest.cs b/crypto/test/src/test/rsa3/RSA3CertTest.cs index 5c0bdb321..a791f5f46 100644 --- a/crypto/test/src/test/rsa3/RSA3CertTest.cs +++ b/crypto/test/src/test/rsa3/RSA3CertTest.cs @@ -108,21 +108,5 @@ namespace Org.BouncyCastle.Tests.Rsa3 return (X509Certificate)rd.ReadObject(); } } - -// public static void main (string[] args) -// throws Exception -// { -// junit.textui.TestRunner.run(suite()); -// } -// -// public static Test suite() -// throws Exception -// { -// TestSuite suite = new TestSuite("Bleichenbacher's Forgery Attack Tests"); -// -// suite.addTestSuite(RSA3CertTest.class); -// -// return suite; -// } } } -- cgit 1.4.1