LibIPC: Remove uneeded NumericLimit<u32>::max check for ByteString

This is no longer needed now that ByteString does not have a null state.
This commit is contained in:
Shannon Booth 2024-05-05 20:36:17 +12:00 committed by Andrew Kaster
parent 55cd53e4ed
commit 4f30d50dc9
Notes: sideshowbarker 2024-07-17 18:06:52 +09:00

View File

@ -34,8 +34,6 @@ template<>
ErrorOr<ByteString> decode(Decoder& decoder)
{
auto length = TRY(decoder.decode_size());
if (length == NumericLimits<u32>::max())
return ByteString {};
if (length == 0)
return ByteString::empty();