summary refs log tree commit diff
path: root/crypto/src/asn1/BerOutputStream.cs
diff options
context:
space:
mode:
authorPeter Dettman <peter.dettman@bouncycastle.org>2021-10-14 12:37:35 +0700
committerPeter Dettman <peter.dettman@bouncycastle.org>2021-10-14 12:37:35 +0700
commitb260a9581c16a77d52ce9d6b7a3b81aa33cadebb (patch)
treef1fc773d69107c312966bc9636b30a48ab86d4fc /crypto/src/asn1/BerOutputStream.cs
parentASN.1 opts. (diff)
downloadBouncyCastle.NET-ed25519-b260a9581c16a77d52ce9d6b7a3b81aa33cadebb.tar.xz
ASN.1 Obsolete cleanup
Diffstat (limited to 'crypto/src/asn1/BerOutputStream.cs')
-rw-r--r--crypto/src/asn1/BerOutputStream.cs25
1 files changed, 2 insertions, 23 deletions
diff --git a/crypto/src/asn1/BerOutputStream.cs b/crypto/src/asn1/BerOutputStream.cs
index b3ece10d3..4ed28d8f3 100644
--- a/crypto/src/asn1/BerOutputStream.cs
+++ b/crypto/src/asn1/BerOutputStream.cs
@@ -7,30 +7,9 @@ namespace Org.BouncyCastle.Asn1
     public class BerOutputStream
         : DerOutputStream
     {
-        public BerOutputStream(Stream os) : base(os)
+        public BerOutputStream(Stream os)
+            : base(os)
         {
         }
-
-		[Obsolete("Use version taking an Asn1Encodable arg instead")]
-        public override void WriteObject(
-            object    obj)
-        {
-            if (obj == null)
-            {
-                WriteNull();
-            }
-            else if (obj is Asn1Object)
-            {
-                ((Asn1Object)obj).Encode(this);
-            }
-            else if (obj is Asn1Encodable)
-            {
-                ((Asn1Encodable)obj).ToAsn1Object().Encode(this);
-            }
-            else
-            {
-                throw new IOException("object not BerEncodable");
-            }
-        }
     }
 }