remove obsolete render function

This commit is contained in:
proddy
2022-03-10 09:53:28 +01:00
parent 26b7075696
commit daaad1ce42
2 changed files with 6 additions and 6 deletions

View File

@@ -190,11 +190,11 @@ char * Helpers::render_boolean(char * result, bool value) {
return result; return result;
} }
// render for native char strings // // render for native char strings
char * Helpers::render_value(char * result, const char * value, const int8_t format __attribute__((unused))) { // char * Helpers::render_value(char * result, const char * value, const int8_t format __attribute__((unused))) {
strcpy(result, value); // un-safe but we don't care // strcpy(result, value); // un-safe but we don't care
return result; // return result;
} // }
// convert unsigned int (single byte) to text value and returns it // convert unsigned int (single byte) to text value and returns it
// format: 255(0xFF)=boolean, 0=no formatting, otherwise divide by format // format: 255(0xFF)=boolean, 0=no formatting, otherwise divide by format

View File

@@ -37,7 +37,7 @@ class Helpers {
static char * render_value(char * result, const uint32_t value, const int8_t format, const uint8_t fahrenheit = 0); static char * render_value(char * result, const uint32_t value, const int8_t format, const uint8_t fahrenheit = 0);
static char * render_value(char * result, const int16_t value, const int8_t format, const uint8_t fahrenheit = 0); static char * render_value(char * result, const int16_t value, const int8_t format, const uint8_t fahrenheit = 0);
static char * render_value(char * result, const int32_t value, const int8_t format, const uint8_t fahrenheit = 0); static char * render_value(char * result, const int32_t value, const int8_t format, const uint8_t fahrenheit = 0);
static char * render_value(char * result, const char * value, const int8_t format); // static char * render_value(char * result, const char * value, const int8_t format);
static char * render_boolean(char * result, bool value); static char * render_boolean(char * result, bool value);
static char * hextoa(char * result, const uint8_t value); static char * hextoa(char * result, const uint8_t value);