From d00ac1fa86ba09fac964c24ffaa1f48e975c3b5b Mon Sep 17 00:00:00 2001 From: proddy Date: Sat, 12 Feb 2022 15:04:37 +0100 Subject: [PATCH] formatting --- src/mqtt.h | 11 +++-------- 1 file changed, 3 insertions(+), 8 deletions(-) diff --git a/src/mqtt.h b/src/mqtt.h index ca180897e..95b461de4 100644 --- a/src/mqtt.h +++ b/src/mqtt.h @@ -183,27 +183,23 @@ class Mqtt { static uint8_t nested_format() { return nested_format_; } - static bool is_nested() { return nested_format_ == 1; } + static void nested_format(uint8_t nested_format) { + nested_format_ = nested_format; + } static bool publish_single() { return publish_single_; } - static void publish_single(bool publish_single) { publish_single_ = publish_single; } - static void nested_format(uint8_t nested_format) { - nested_format_ = nested_format; - } - static bool ha_enabled() { return ha_enabled_; } - static void ha_enabled(bool ha_enabled) { ha_enabled_ = ha_enabled; } @@ -211,7 +207,6 @@ class Mqtt { static bool send_response() { return send_response_; } - static void send_response(bool send_response) { send_response_ = send_response; }