Remove unused Enum::InternalFlagsFormat parameter (#45196)
authorMarek Safar <marek.safar@gmail.com>
Wed, 25 Nov 2020 16:51:13 +0000 (17:51 +0100)
committerGitHub <noreply@github.com>
Wed, 25 Nov 2020 16:51:13 +0000 (11:51 -0500)
src/libraries/System.Private.CoreLib/src/System/Enum.cs

index 00df337..e8377f5 100644 (file)
@@ -142,19 +142,17 @@ namespace System
             }
             else // These are flags OR'ed together (We treat everything as unsigned types)
             {
-                return InternalFlagsFormat(enumType, enumInfo, value);
+                return InternalFlagsFormat(enumInfo, value);
             }
         }
 
         private static string? InternalFlagsFormat(RuntimeType enumType, ulong result)
         {
-            return InternalFlagsFormat(enumType, GetEnumInfo(enumType), result);
+            return InternalFlagsFormat(GetEnumInfo(enumType), result);
         }
 
-        private static string? InternalFlagsFormat(RuntimeType enumType, EnumInfo enumInfo, ulong resultValue)
+        private static string? InternalFlagsFormat(EnumInfo enumInfo, ulong resultValue)
         {
-            Debug.Assert(enumType != null);
-
             string[] names = enumInfo.Names;
             ulong[] values = enumInfo.Values;
             Debug.Assert(names.Length == values.Length);