Skip to content

Commit f41364d

Browse files
christophpurrermeta-codesync[bot]
authored andcommitted
Fix unused parameter warnings in StubWebSocketClient.h (#56527)
Summary: Pull Request resolved: #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
1 parent a78d6f4 commit f41364d

1 file changed

Lines changed: 5 additions & 5 deletions

File tree

private/react-native-fantom/tester/src/stubs/StubWebSocketClient.h

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -20,15 +20,15 @@ class StubWebSocketClient : public IWebSocketClient {
2020
StubWebSocketClient(StubWebSocketClient &&other) = delete;
2121
StubWebSocketClient &operator=(StubWebSocketClient &&other) = delete;
2222

23-
void setOnClosedCallback(OnClosedCallback &&callback) noexcept override {}
23+
void setOnClosedCallback(OnClosedCallback && /*callback*/) noexcept override {}
2424

25-
void setOnMessageCallback(OnMessageCallback &&callback) noexcept override {}
25+
void setOnMessageCallback(OnMessageCallback && /*callback*/) noexcept override {}
2626

27-
void connect(const std::string &url, OnConnectCallback &&onConnectCallback = nullptr) override {}
27+
void connect(const std::string & /*url*/, OnConnectCallback && /*onConnectCallback*/ = nullptr) override {}
2828

29-
void close(const std::string &reason) override {}
29+
void close(const std::string & /*reason*/) override {}
3030

31-
void send(const std::string &message) override {}
31+
void send(const std::string & /*message*/) override {}
3232

3333
void ping() override {}
3434
};

0 commit comments

Comments
 (0)