mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2025-09-30 05:09:01 +00:00
LibWasm: Remove unused ParseError
variant
This commit is contained in:
parent
9800ef6047
commit
41dc58f702
Notes:
github-actions[bot]
2024-07-28 11:03:31 +00:00
Author: https://github.com/dzfrias
Commit: 41dc58f702
Pull-request: https://github.com/LadybirdBrowser/ladybird/pull/875
Reviewed-by: https://github.com/alimpfard ✅
2 changed files with 0 additions and 4 deletions
|
@ -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);
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue