Remove unused local (#40967)
authorSeonyoung Park <48307770+seonyounggg@users.noreply.github.com>
Sun, 23 Aug 2020 17:51:01 +0000 (02:51 +0900)
committerGitHub <noreply@github.com>
Sun, 23 Aug 2020 17:51:01 +0000 (10:51 -0700)
issue dotnet#30457
remove unused local variable dwErrorCode at line 248

src/libraries/System.Security.Cryptography.X509Certificates/src/Internal/Cryptography/Pal.Windows/CertificatePal.PrivateKey.cs

index fef4999..82b0f0f 100644 (file)
@@ -245,7 +245,6 @@ namespace Internal.Cryptography.Pal
                     out keySpec,
                     out freeKey))
                 {
-                    int dwErrorCode = Marshal.GetLastWin32Error();
 
                     // The documentation for CryptAcquireCertificatePrivateKey says that freeKey
                     // should already be false if "key acquisition fails", and it can be presumed