summary refs log tree commit diff
path: root/crypto/src/asn1/ASN1StreamParser.cs
diff options
context:
space:
mode:
authorPeter Dettman <peter.dettman@gmail.com>2022-06-21 22:00:34 +0700
committerPeter Dettman <peter.dettman@gmail.com>2022-06-21 22:00:34 +0700
commit62b3de2a28363f721f1bc3ecb1b9aa8990596d2d (patch)
treec8f297b54bd1f336b9c27388b4f9b01afd0047a7 /crypto/src/asn1/ASN1StreamParser.cs
parentRemove junk files (diff)
downloadBouncyCastle.NET-ed25519-62b3de2a28363f721f1bc3ecb1b9aa8990596d2d.tar.xz
Remove ApplicationSpecific classes
Diffstat (limited to 'crypto/src/asn1/ASN1StreamParser.cs')
-rw-r--r--crypto/src/asn1/ASN1StreamParser.cs12
1 files changed, 0 insertions, 12 deletions
diff --git a/crypto/src/asn1/ASN1StreamParser.cs b/crypto/src/asn1/ASN1StreamParser.cs
index 3281310c0..f805f68a5 100644
--- a/crypto/src/asn1/ASN1StreamParser.cs
+++ b/crypto/src/asn1/ASN1StreamParser.cs
@@ -71,12 +71,7 @@ namespace Org.BouncyCastle.Asn1
 
                 int tagClass = tagHdr & Asn1Tags.Private;
                 if (0 != tagClass)
-                {
-                    if (Asn1Tags.Application == tagClass)
-                        return new BerApplicationSpecificParser(tagNo, sp);
-
                     return new BerTaggedObjectParser(tagClass, tagNo, sp);
-                }
 
                 return sp.ParseImplicitConstructedIL(tagNo);
 			}
@@ -94,13 +89,6 @@ namespace Org.BouncyCastle.Asn1
                 {
                     bool isConstructed = (tagHdr & Asn1Tags.Constructed) != 0;
 
-                    // TODO[asn1] Special handling can be removed once ASN1ApplicationSpecific types removed.
-                    if (Asn1Tags.Application == tagClass)
-                    {
-                        // This cast is ensuring the current user-expected return type.
-                        return (DLApplicationSpecific)sp.LoadTaggedDL(tagClass, tagNo, isConstructed);
-                    }
-
                     return new DLTaggedObjectParser(tagClass, tagNo, isConstructed, sp);
                 }