mirror of
https://github.com/RGBCube/serenity
synced 2025-07-27 22:27:35 +00:00
LibCore: Remove Stream::is_{readable,writable}
Next to functions like `is_eof` these were really confusing to use, and the `read`/`write` functions should fail anyways if a stream is not readable/writable.
This commit is contained in:
parent
5a346c4297
commit
5061a905ff
7 changed files with 1 additions and 32 deletions
|
@ -107,9 +107,7 @@ public:
|
|||
public:
|
||||
BrotliDecompressionStream(Stream&);
|
||||
|
||||
bool is_readable() const override { return m_input_stream.is_readable(); }
|
||||
ErrorOr<Bytes> read(Bytes output_buffer) override;
|
||||
bool is_writable() const override { return m_input_stream.is_writable(); }
|
||||
ErrorOr<size_t> write(ReadonlyBytes bytes) override { return m_input_stream.write(bytes); }
|
||||
bool is_eof() const override;
|
||||
bool is_open() const override { return m_input_stream.is_open(); }
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue