Skip to content

Commit bd9fce2

Browse files
Fix unused parameter warnings in StubWebSocketClient.h
Summary: 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] Differential Revision: D101110612
1 parent b111c0e commit bd9fce2

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)