Skip to content

Commit

Permalink
Remove enum name parsing
Browse files Browse the repository at this point in the history
  • Loading branch information
AliveDevil committed Aug 26, 2024
1 parent 49e98df commit 7aeff14
Showing 1 changed file with 2 additions and 7 deletions.
9 changes: 2 additions & 7 deletions src/IKVM.Tools.Importer/IkvmImporterInternal.cs
Original file line number Diff line number Diff line change
Expand Up @@ -1532,13 +1532,8 @@ internal static void HandleWarnArg(ICollection<string> target, string arg)

if (!int.TryParse(parse, out var intResult))
{
if (!Enum.TryParse<Message>(parse, out var namedResult))
{
continue; // silently continue
}

// Warnings are handled as int.
intResult = (int)namedResult;
// NamedResults aren't supported
continue; // silently continue
}

target.Add($"{intResult}{context}");
Expand Down

0 comments on commit 7aeff14

Please sign in to comment.