summary refs log tree commit diff
diff options
context:
space:
mode:
authorPeter Dettman <peter.dettman@bouncycastle.org>2023-04-15 19:16:29 +0700
committerPeter Dettman <peter.dettman@bouncycastle.org>2023-04-15 19:16:29 +0700
commitd33a46307678e1a4c6e1375d92818b41cd478c5c (patch)
tree89e39b26cc59a7101281d59fcb04736408acb46c
parentMerge branch 'dtls-resend-time' (diff)
downloadBouncyCastle.NET-ed25519-d33a46307678e1a4c6e1375d92818b41cd478c5c.tar.xz
Code cleanup
-rw-r--r--crypto/src/asn1/cmp/NestedMessageContent.cs2
-rw-r--r--crypto/src/asn1/cmp/PKIStatusInfo.cs2
-rw-r--r--crypto/test/src/test/rsa3/RSA3CertTest.cs16
3 files changed, 0 insertions, 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;
-//		}
 	}
 }