summary refs log tree commit diff
path: root/crypto/src/asn1/DerOutputStream.cs
diff options
context:
space:
mode:
authorPeter Dettman <peter.dettman@bouncycastle.org>2021-11-11 20:18:10 +0700
committerPeter Dettman <peter.dettman@bouncycastle.org>2021-11-11 20:18:10 +0700
commit41a2854eebcb65e5e063eb9dc26e0787cf2845f8 (patch)
treed71638e1b23313112cb5c3d45a5c3c10f2fcefef /crypto/src/asn1/DerOutputStream.cs
parentMinor fixes for DLTaggedObject (diff)
downloadBouncyCastle.NET-ed25519-41a2854eebcb65e5e063eb9dc26e0787cf2845f8.tar.xz
Remove now-redundant workaround
Diffstat (limited to '')
-rw-r--r--crypto/src/asn1/DerOutputStream.cs15
1 files changed, 0 insertions, 15 deletions
diff --git a/crypto/src/asn1/DerOutputStream.cs b/crypto/src/asn1/DerOutputStream.cs
index 47b945635..dda9ce1c0 100644
--- a/crypto/src/asn1/DerOutputStream.cs
+++ b/crypto/src/asn1/DerOutputStream.cs
@@ -43,20 +43,5 @@ namespace Org.BouncyCastle.Asn1
         {
             get { return EncodingDer; }
         }
-
-        internal override void WritePrimitive(Asn1Object primitive, bool withID)
-        {
-            Asn1Set asn1Set = primitive as Asn1Set;
-            if (null != asn1Set)
-            {
-                /*
-                 * NOTE: Even a DerSet isn't necessarily already in sorted order (particularly from DerSetParser),
-                 * so all sets have to be converted here.
-                 */
-                primitive = new DerSet(asn1Set.elements);
-            }
-
-            primitive.Encode(this, withID);
-        }
     }
 }