Remove some unused locals (dotnet/corefx#39956)
commitc5027781de0dbc5e64ce3a3733dd710024e1b3f5
authorStephen Toub <stoub@microsoft.com>
Mon, 5 Aug 2019 15:05:14 +0000 (5 11:05 -0400)
committerMarek Safar <marek.safar@gmail.com>
Wed, 7 Aug 2019 07:48:03 +0000 (7 09:48 +0200)
tree8150c60f17f753388bc1c96323e01920ef0f9f4b
parent824351f49c7a9ba12deea83c24e32f23f77048c7
Remove some unused locals (dotnet/corefx#39956)

* Remove some unused locals

Trying out various analyzers, including one to flag unused locals.  There are more than this, but this is a first batch.  Some of these are just clean-up.  Others are saving unnecessary cost.  At least one appears to be a real functional bug.

* Address PR feedback

Signed-off-by: dotnet-bot <dotnet-bot@microsoft.com>
netcore/System.Private.CoreLib/shared/System/Resources/ResourceReader.cs
netcore/System.Private.CoreLib/shared/System/Threading/Tasks/ConcurrentExclusiveSchedulerPair.cs