From f066972c7aa9f9147347623617e789e70aff3d3f Mon Sep 17 00:00:00 2001 From: Marek Safar Date: Wed, 25 Nov 2020 17:51:13 +0100 Subject: [PATCH] Remove unused Enum::InternalFlagsFormat parameter (#45196) --- src/libraries/System.Private.CoreLib/src/System/Enum.cs | 8 +++----- 1 file changed, 3 insertions(+), 5 deletions(-) diff --git a/src/libraries/System.Private.CoreLib/src/System/Enum.cs b/src/libraries/System.Private.CoreLib/src/System/Enum.cs index 00df337562138..e8377f593bb7d 100644 --- a/src/libraries/System.Private.CoreLib/src/System/Enum.cs +++ b/src/libraries/System.Private.CoreLib/src/System/Enum.cs @@ -142,19 +142,17 @@ private static string ValueToHexString(object value) } 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);