From 4f30d50dc9c2d891b60efb6ff531c93f31badb59 Mon Sep 17 00:00:00 2001 From: Shannon Booth Date: Sun, 5 May 2024 20:36:17 +1200 Subject: [PATCH] LibIPC: Remove uneeded NumericLimit::max check for ByteString This is no longer needed now that ByteString does not have a null state. --- Userland/Libraries/LibIPC/Decoder.cpp | 2 -- 1 file changed, 2 deletions(-) diff --git a/Userland/Libraries/LibIPC/Decoder.cpp b/Userland/Libraries/LibIPC/Decoder.cpp index 9c16317511a..a826139f1d3 100644 --- a/Userland/Libraries/LibIPC/Decoder.cpp +++ b/Userland/Libraries/LibIPC/Decoder.cpp @@ -34,8 +34,6 @@ template<> ErrorOr decode(Decoder& decoder) { auto length = TRY(decoder.decode_size()); - if (length == NumericLimits::max()) - return ByteString {}; if (length == 0) return ByteString::empty();