mirror of
https://github.com/facebook/react-native.git
synced 2026-11-18 20:19:07 +00:00
Fix unused parameter warnings in StubWebSocketClient.h (#56527)
Summary: Pull Request resolved: https://github.com/facebook/react-native/pull/56527 Removed parameter names from unused parameters in StubWebSocketClient stub implementation to fix clang-diagnostic-unused-parameter warnings. This stub class implements IWebSocketClient interface with empty method bodies, so all parameters were unused. Changelog: [Internal] Reviewed By: philIip Differential Revision: D101110612 fbshipit-source-id: 859d7e630b6f0fd1836c5706a81f05ffd72471f7
This commit is contained in:
1 parent
a78d6f4d0e
commit
f41364d11d
1 file changed
+5
-5
@@ -20,15 +20,15 @@ class StubWebSocketClient : public IWebSocketClient {
|
||||
StubWebSocketClient(StubWebSocketClient &&other) = delete;
|
||||
StubWebSocketClient &operator=(StubWebSocketClient &&other) = delete;
|
||||
|
||||
void setOnClosedCallback(OnClosedCallback &&callback) noexcept override {}
|
||||
void setOnClosedCallback(OnClosedCallback && /*callback*/) noexcept override {}
|
||||
|
||||
void setOnMessageCallback(OnMessageCallback &&callback) noexcept override {}
|
||||
void setOnMessageCallback(OnMessageCallback && /*callback*/) noexcept override {}
|
||||
|
||||
void connect(const std::string &url, OnConnectCallback &&onConnectCallback = nullptr) override {}
|
||||
void connect(const std::string & /*url*/, OnConnectCallback && /*onConnectCallback*/ = nullptr) override {}
|
||||
|
||||
void close(const std::string &reason) override {}
|
||||
void close(const std::string & /*reason*/) override {}
|
||||
|
||||
void send(const std::string &message) override {}
|
||||
void send(const std::string & /*message*/) override {}
|
||||
|
||||
void ping() override {}
|
||||
};
|
||||
|
||||
Reference in new issue
Block a user