Skip to content

Commit 4b431b5

Browse files
authored
Remove unused local (#40967)
issue #30457 remove unused local variable dwErrorCode at line 248
1 parent 151ea24 commit 4b431b5

File tree

1 file changed

+0
-1
lines changed

1 file changed

+0
-1
lines changed

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

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -245,7 +245,6 @@ public ICertificatePal CopyWithPrivateKey(RSA rsa)
245245
out keySpec,
246246
out freeKey))
247247
{
248-
int dwErrorCode = Marshal.GetLastWin32Error();
249248

250249
// The documentation for CryptAcquireCertificatePrivateKey says that freeKey
251250
// should already be false if "key acquisition fails", and it can be presumed

0 commit comments

Comments
 (0)