mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2024-11-26 09:30:24 +00:00
LibCore: Remove Stream::write_or_error
This was there for compatibility purposes and now it's no longer needed.
This commit is contained in:
parent
9f92e1bf11
commit
0a563f4943
Notes:
sideshowbarker
2024-07-17 02:29:45 +09:00
Author: https://github.com/timschumi Commit: https://github.com/SerenityOS/serenity/commit/0a563f4943 Pull-request: https://github.com/SerenityOS/serenity/pull/17009
1 changed files with 0 additions and 9 deletions
|
@ -99,15 +99,6 @@ public:
|
|||
/// contents are written or an error occurs.
|
||||
virtual ErrorOr<void> 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<typename T>
|
||||
requires(Traits<T>::is_trivially_serializable())
|
||||
ErrorOr<T> read_value()
|
||||
|
|
Loading…
Reference in a new issue