Browse Source

Redundant test

Source commit: a1a25242f222884662a3ca070a1c62d6fe1cb060
Martin Prikryl 2 months ago
parent
commit
489d85f2d5
1 changed files with 0 additions and 2 deletions
  1. 0 2
      dotnet/internal/PipeStream.cs

+ 0 - 2
dotnet/internal/PipeStream.cs

@@ -134,8 +134,6 @@ namespace WinSCP
         ///<exception cref="ArgumentOutOfRangeException">offset or count is negative.</exception>
         ///<exception cref="ArgumentOutOfRangeException">offset or count is negative.</exception>
         public override int Read(byte[] buffer, int offset, int count)
         public override int Read(byte[] buffer, int offset, int count)
         {
         {
-            if (offset < 0)
-                throw new NotSupportedException("Offset cnnot be negative");
             if (buffer == null)
             if (buffer == null)
                 throw new ArgumentNullException("buffer");
                 throw new ArgumentNullException("buffer");
             if (offset + count > buffer.Length)
             if (offset + count > buffer.Length)