mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2024-09-20 09:49:15 +03:00
LibWebSocket: Remove unused WebSocketImpl::can_read()
This commit is contained in:
parent
be5f6aa46e
commit
8e50809f20
Notes:
sideshowbarker
2024-07-18 00:54:03 +09:00
Author: https://github.com/awesomekling Commit: https://github.com/SerenityOS/serenity/commit/8e50809f20
@ -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…
Reference in New Issue
Block a user