removed unused local variables (#32896)
authorAlan Isaac <alan.pinkert@gmail.com>
Thu, 27 Feb 2020 03:15:45 +0000 (22:15 -0500)
committerGitHub <noreply@github.com>
Thu, 27 Feb 2020 03:15:45 +0000 (22:15 -0500)
src/libraries/System.IO.Ports/src/System/IO/Ports/SerialPort.cs

index a01b56b29f0aca5a8c0b013c3617893490dd816e..f1417a0da9a023fb7ba41e34db325ca161983efe 100644 (file)
@@ -1012,7 +1012,6 @@ namespace System.IO.Ports
             if (value.Length == 0)
                 throw new ArgumentException(SR.Format(SR.InvalidNullEmptyArgument, nameof(value)), nameof(value));
 
-            int startTicks = Environment.TickCount;
             int numCharsRead;
             int timeUsed = 0;
             int timeNow;
@@ -1025,7 +1024,6 @@ namespace System.IO.Ports
             MaybeResizeBuffer(bytesInStream);
 
             _readLen += _internalSerialStream.Read(_inBuffer, _readLen, bytesInStream);
-            int beginReadPos = _readPos;
 
             if (_singleCharBuffer == null)
             {