mirror of
https://github.com/RGBCube/serenity
synced 2025-07-27 16:17:36 +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
1 changed files with 0 additions and 9 deletions
|
@ -99,15 +99,6 @@ public:
|
||||||
/// contents are written or an error occurs.
|
/// contents are written or an error occurs.
|
||||||
virtual ErrorOr<void> write_entire_buffer(ReadonlyBytes);
|
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>
|
template<typename T>
|
||||||
requires(Traits<T>::is_trivially_serializable())
|
requires(Traits<T>::is_trivially_serializable())
|
||||||
ErrorOr<T> read_value()
|
ErrorOr<T> read_value()
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue