Skip to content

Commit

Permalink
Remove unused Enum::InternalFlagsFormat parameter (#45196)
Browse files Browse the repository at this point in the history
  • Loading branch information
marek-safar committed Nov 25, 2020
1 parent d6b9adb commit f066972
Showing 1 changed file with 3 additions and 5 deletions.
8 changes: 3 additions & 5 deletions src/libraries/System.Private.CoreLib/src/System/Enum.cs
Original file line number Diff line number Diff line change
Expand Up @@ -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);
Expand Down

0 comments on commit f066972

Please sign in to comment.