From ac837bc01ab5f99df4fbdf3b3c23b13d21130138 Mon Sep 17 00:00:00 2001 From: Jeffrey Stedfast Date: Fri, 3 Sep 2021 14:30:15 -0400 Subject: [PATCH] Removed shortcut logic in MeasureingStream.Seek() This was pointless. --- MimeKit/IO/MeasuringStream.cs | 4 ---- 1 file changed, 4 deletions(-) diff --git a/MimeKit/IO/MeasuringStream.cs b/MimeKit/IO/MeasuringStream.cs index f7e204b6a5..68fae541cc 100644 --- a/MimeKit/IO/MeasuringStream.cs +++ b/MimeKit/IO/MeasuringStream.cs @@ -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");