summary refs log tree commit diff
path: root/crypto/src/asn1/LazyASN1InputStream.cs
diff options
context:
space:
mode:
Diffstat (limited to 'crypto/src/asn1/LazyASN1InputStream.cs')
-rw-r--r--crypto/src/asn1/LazyASN1InputStream.cs29
1 files changed, 2 insertions, 27 deletions
diff --git a/crypto/src/asn1/LazyASN1InputStream.cs b/crypto/src/asn1/LazyASN1InputStream.cs
index 8807416f4..7935bc85a 100644
--- a/crypto/src/asn1/LazyASN1InputStream.cs
+++ b/crypto/src/asn1/LazyASN1InputStream.cs
@@ -3,6 +3,8 @@ using System.IO;
 
 namespace Org.BouncyCastle.Asn1
 {
+    /// <remarks>No longer provides any laziness.</remarks>
+    [Obsolete("Will be removed")]
     public class LazyAsn1InputStream
         : Asn1InputStream
     {
@@ -25,32 +27,5 @@ namespace Org.BouncyCastle.Asn1
             : base(input, limit, leaveOpen)
         {
         }
-
-        internal LazyAsn1InputStream(Stream input, int limit, bool leaveOpen, byte[][] tmpBuffers)
-            : base(input, limit, leaveOpen, tmpBuffers)
-        {
-        }
-
-        internal override Asn1Sequence CreateDLSequence(DefiniteLengthInputStream defIn)
-        {
-            return new LazyDLSequence(defIn.ToArray());
-        }
-
-        internal override Asn1Set CreateDLSet(DefiniteLengthInputStream defIn)
-        {
-            return new LazyDLSet(defIn.ToArray());
-        }
-
-        internal override Asn1EncodableVector ReadVector(DefiniteLengthInputStream defIn)
-        {
-            int remaining = defIn.Remaining;
-            if (remaining < 1)
-                return new Asn1EncodableVector(0);
-
-            using (var sub = new LazyAsn1InputStream(defIn, remaining, leaveOpen: true, tmpBuffers))
-            {
-                return sub.ReadVector();
-            }
-        }
     }
 }