From 0a563f49438a5a2034831739ead0ad7048619196 Mon Sep 17 00:00:00 2001 From: Tim Schumacher Date: Sat, 14 Jan 2023 11:40:57 +0100 Subject: [PATCH] LibCore: Remove `Stream::write_or_error` This was there for compatibility purposes and now it's no longer needed. --- Userland/Libraries/LibCore/Stream.h | 9 --------- 1 file changed, 9 deletions(-) diff --git a/Userland/Libraries/LibCore/Stream.h b/Userland/Libraries/LibCore/Stream.h index 46949d45b7..8757bf1100 100644 --- a/Userland/Libraries/LibCore/Stream.h +++ b/Userland/Libraries/LibCore/Stream.h @@ -99,15 +99,6 @@ public: /// contents are written or an error occurs. virtual ErrorOr write_entire_buffer(ReadonlyBytes); - // This is a wrapper around `write_entire_buffer` that is compatible with - // `write_or_error`. This is required by some templated code in LibProtocol - // that needs to work with either type of stream. - // TODO: Fully port or wrap `Request::stream_into_impl` into `Core::Stream` and remove this. - bool write_or_error(ReadonlyBytes buffer) - { - return !write_entire_buffer(buffer).is_error(); - } - template requires(Traits::is_trivially_serializable()) ErrorOr read_value()