rfbridge(build): -Wunused-function

This commit is contained in:
Maxim Prokhorov
2025-11-29 22:19:11 +03:00
parent e137b286ac
commit 84e43c7b59

View File

@@ -48,12 +48,6 @@ constexpr bool _rfb_transmit { true };
std::forward_list<RfbCodeHandler> _rfb_code_handlers;
void _rfbCode(unsigned char protocol, espurna::StringView code) {
for (auto& handler : _rfb_code_handlers) {
handler(protocol, code);
}
}
} // namespace
// -----------------------------------------------------------------------------
@@ -675,6 +669,12 @@ void _rfbLearnStartFromPayload(espurna::StringView payload) {
namespace {
void _rfbCode(unsigned char protocol, espurna::StringView code) {
for (auto& handler : _rfb_code_handlers) {
handler(protocol, code);
}
}
void _rfbEnqueue(uint8_t (&code)[RfbParser::PayloadSizeBasic], unsigned char repeats = 1u) {
if (!_rfb_transmit) return;
_rfb_message_queue.push_back(RfbMessage(code, repeats));