mirror of
https://github.com/fergalmoran/ladybird.git
synced 2026-01-06 00:25:12 +00:00
LibWasm: Remove unused ParseError variant
This commit is contained in:
committed by
Ali Mohammad Pur
parent
9800ef6047
commit
41dc58f702
@@ -1310,8 +1310,6 @@ ByteString parse_error_to_byte_string(ParseError error)
|
|||||||
return "A parsed tag did not make sense in context";
|
return "A parsed tag did not make sense in context";
|
||||||
case ParseError::InvalidType:
|
case ParseError::InvalidType:
|
||||||
return "A parsed type did not make sense in context";
|
return "A parsed type did not make sense in context";
|
||||||
case ParseError::NotImplemented:
|
|
||||||
return "The parser encountered an unimplemented feature";
|
|
||||||
case ParseError::HugeAllocationRequested:
|
case ParseError::HugeAllocationRequested:
|
||||||
return "Parsing caused an attempt to allocate a very big chunk of memory, likely malformed data";
|
return "Parsing caused an attempt to allocate a very big chunk of memory, likely malformed data";
|
||||||
case ParseError::OutOfMemory:
|
case ParseError::OutOfMemory:
|
||||||
|
|||||||
@@ -56,8 +56,6 @@ enum class ParseError {
|
|||||||
OutOfMemory,
|
OutOfMemory,
|
||||||
SectionSizeMismatch,
|
SectionSizeMismatch,
|
||||||
InvalidUtf8,
|
InvalidUtf8,
|
||||||
// FIXME: This should not exist!
|
|
||||||
NotImplemented,
|
|
||||||
};
|
};
|
||||||
|
|
||||||
ByteString parse_error_to_byte_string(ParseError);
|
ByteString parse_error_to_byte_string(ParseError);
|
||||||
|
|||||||
Reference in New Issue
Block a user