LibWebSocket: Remove unused WebSocketImpl::can_read()

This commit is contained in:
Andreas Kling 2022-11-08 19:16:59 +01:00
parent be5f6aa46e
commit 8e50809f20
Notes: sideshowbarker 2024-07-18 00:54:03 +09:00
3 changed files with 0 additions and 7 deletions

View File

@ -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;

View File

@ -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);

View File

@ -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;