mirror of
https://github.com/xoseperez/espurna.git
synced 2026-02-20 01:31:34 +01:00
rfbridge(build): -Wunused-function
This commit is contained in:
@@ -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));
|
||||
|
||||
Reference in New Issue
Block a user