From 41dc58f70236975348ad46f521c14589c2da51f9 Mon Sep 17 00:00:00 2001 From: Diego Frias Date: Sat, 27 Jul 2024 17:23:38 -0700 Subject: [PATCH] LibWasm: Remove unused `ParseError` variant --- Userland/Libraries/LibWasm/Parser/Parser.cpp | 2 -- Userland/Libraries/LibWasm/Types.h | 2 -- 2 files changed, 4 deletions(-) diff --git a/Userland/Libraries/LibWasm/Parser/Parser.cpp b/Userland/Libraries/LibWasm/Parser/Parser.cpp index 96239c77fa8..28d29a3f905 100644 --- a/Userland/Libraries/LibWasm/Parser/Parser.cpp +++ b/Userland/Libraries/LibWasm/Parser/Parser.cpp @@ -1310,8 +1310,6 @@ ByteString parse_error_to_byte_string(ParseError error) return "A parsed tag did not make sense in context"; case ParseError::InvalidType: return "A parsed type did not make sense in context"; - case ParseError::NotImplemented: - return "The parser encountered an unimplemented feature"; case ParseError::HugeAllocationRequested: return "Parsing caused an attempt to allocate a very big chunk of memory, likely malformed data"; case ParseError::OutOfMemory: diff --git a/Userland/Libraries/LibWasm/Types.h b/Userland/Libraries/LibWasm/Types.h index 7e8afc45fa5..e3ddf49dac2 100644 --- a/Userland/Libraries/LibWasm/Types.h +++ b/Userland/Libraries/LibWasm/Types.h @@ -56,8 +56,6 @@ enum class ParseError { OutOfMemory, SectionSizeMismatch, InvalidUtf8, - // FIXME: This should not exist! - NotImplemented, }; ByteString parse_error_to_byte_string(ParseError);