Skip to content

Commit

Permalink
Removed shortcut logic in MeasureingStream.Seek()
Browse files Browse the repository at this point in the history
This was pointless.
  • Loading branch information
jstedfast committed Sep 3, 2021
1 parent e93501b commit ac837bc
Showing 1 changed file with 0 additions and 4 deletions.
4 changes: 0 additions & 4 deletions MimeKit/IO/MeasuringStream.cs
Original file line number Diff line number Diff line change
Expand Up @@ -333,10 +333,6 @@ public override long Seek (long offset, SeekOrigin origin)
if (real < 0)
throw new IOException ("Cannot seek to a position before the beginning of the stream");

// short-cut if we are seeking to our current position
if (real == position)
return position;

if (real > length)
throw new IOException ("Cannot seek beyond the end of the stream");

Expand Down

0 comments on commit ac837bc

Please sign in to comment.