Reduce need for UNUSED

This commit is contained in:
Scott Lahteine
2019-09-30 21:44:07 -05:00
parent e3ff27c95a
commit e3fd0519b3
31 changed files with 104 additions and 143 deletions

View File

@@ -273,7 +273,7 @@ public:
static void init();
static void update();
static void set_alert_status_P(PGM_P message);
static void set_alert_status_P(PGM_P const message);
static char status_message[];
static bool has_status();
@@ -393,10 +393,10 @@ public:
static inline void update() {}
static inline void refresh() {}
static inline void return_to_status() {}
static inline void set_alert_status_P(PGM_P message) { UNUSED(message); }
static inline void set_status(const char* const message, const bool persist=false) { UNUSED(message); UNUSED(persist); }
static inline void set_status_P(PGM_P const message, const int8_t level=0) { UNUSED(message); UNUSED(level); }
static inline void status_printf_P(const uint8_t level, PGM_P const fmt, ...) { UNUSED(level); UNUSED(fmt); }
static inline void set_alert_status_P(PGM_P const) {}
static inline void set_status(const char* const, const bool=false) {}
static inline void set_status_P(PGM_P const, const int8_t=0) {}
static inline void status_printf_P(const uint8_t, PGM_P const, ...) {}
static inline void reset_status() {}
static inline void reset_alert_level() {}
static constexpr bool has_status() { return false; }