mirror of
https://github.com/RGBCube/serenity
synced 2025-07-27 06:47:35 +00:00
LibWebSocket: Remove unused WebSocketImpl::can_read()
This commit is contained in:
parent
be5f6aa46e
commit
8e50809f20
3 changed files with 0 additions and 7 deletions
|
@ -22,7 +22,6 @@ public:
|
|||
virtual void connect(ConnectionInfo const&) = 0;
|
||||
virtual bool can_read_line() = 0;
|
||||
virtual ErrorOr<String> read_line(size_t) = 0;
|
||||
virtual bool can_read() = 0;
|
||||
virtual ErrorOr<ByteBuffer> read(int max_size) = 0;
|
||||
virtual bool send(ReadonlyBytes) = 0;
|
||||
virtual bool eof() = 0;
|
||||
|
|
|
@ -19,11 +19,6 @@ bool WebSocketImplSerenity::can_read_line()
|
|||
return MUST(m_socket->can_read_line());
|
||||
}
|
||||
|
||||
bool WebSocketImplSerenity::can_read()
|
||||
{
|
||||
return MUST(m_socket->can_read_without_blocking());
|
||||
}
|
||||
|
||||
bool WebSocketImplSerenity::send(ReadonlyBytes bytes)
|
||||
{
|
||||
return m_socket->write_or_error(bytes);
|
||||
|
|
|
@ -20,7 +20,6 @@ public:
|
|||
virtual void connect(ConnectionInfo const&) override;
|
||||
virtual bool can_read_line() override;
|
||||
virtual ErrorOr<String> read_line(size_t) override;
|
||||
virtual bool can_read() override;
|
||||
virtual ErrorOr<ByteBuffer> read(int max_size) override;
|
||||
virtual bool send(ReadonlyBytes) override;
|
||||
virtual bool eof() override;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue