Remove the unused local variable 'length' (#40693)
authorminju <37239344+hiMinju@users.noreply.github.com>
Wed, 12 Aug 2020 05:58:02 +0000 (14:58 +0900)
committerGitHub <noreply@github.com>
Wed, 12 Aug 2020 05:58:02 +0000 (22:58 -0700)
#30457
In line 292, remove the unused variable 'length'.

Thanks.

src/libraries/System.Security.AccessControl/src/System/Security/AccessControl/SecurityDescriptor.cs

index 688446b..80e6780 100644 (file)
@@ -289,8 +289,6 @@ namespace System.Security.AccessControl
             // Populate the header
             //
 
-            int length = BinaryLength;
-
             byte rmControl =
                 ((this is RawSecurityDescriptor rsd) &&
                  ((ControlFlags & ControlFlags.RMControlValid) != 0)) ? (rsd.ResourceManagerControl) : (byte)0;