remove unused variables

This commit is contained in:
liamcottle
2025-04-08 23:17:22 +12:00
parent bc820ae93e
commit c4d32eba74
6 changed files with 4 additions and 12 deletions

View File

@@ -30,8 +30,6 @@ void UITask::begin(DisplayDriver* display, const char* node_name, const char* bu
_auto_off = millis() + AUTO_OFF_MILLIS;
clearMsgPreview();
_node_name = node_name;
_build_date = build_date;
_firmware_version = firmware_version;
_pin_code = pin_code;
if (_display != NULL) {
_display->turnOn();
@@ -39,14 +37,14 @@ void UITask::begin(DisplayDriver* display, const char* node_name, const char* bu
// strip off dash and commit hash by changing dash to null terminator
// e.g: v1.2.3-abcdef -> v1.2.3
char *version = strdup(_firmware_version);
char *version = strdup(firmware_version);
char *dash = strchr(version, '-');
if(dash){
*dash = 0;
}
// v1.2.3 (1 Jan 2025)
sprintf(_version_info, "%s (%s)", version, _build_date);
sprintf(_version_info, "%s (%s)", version, build_date);
}
void UITask::msgRead(int msgcount) {

View File

@@ -11,8 +11,6 @@ class UITask {
bool _connected;
uint32_t _pin_code;
const char* _node_name;
const char* _build_date;
const char* _firmware_version;
char _version_info[32];
char _origin[62];
char _msg[80];

View File

@@ -24,7 +24,6 @@ void UITask::begin(const char* node_name, const char* build_date, const char* fi
_prevBtnState = HIGH;
_auto_off = millis() + AUTO_OFF_MILLIS;
_node_name = node_name;
_build_date = build_date;
_display->turnOn();
// strip off dash and commit hash by changing dash to null terminator
@@ -36,7 +35,7 @@ void UITask::begin(const char* node_name, const char* build_date, const char* fi
}
// v1.2.3 (1 Jan 2025)
sprintf(_version_info, "%s (%s)", version, _build_date);
sprintf(_version_info, "%s (%s)", version, build_date);
}
void UITask::renderCurrScreen() {

View File

@@ -7,7 +7,6 @@ class UITask {
unsigned long _next_read, _next_refresh, _auto_off;
int _prevBtnState;
const char* _node_name;
const char* _build_date;
char _version_info[32];
void renderCurrScreen();

View File

@@ -24,7 +24,6 @@ void UITask::begin(const char* node_name, const char* build_date, const char* fi
_prevBtnState = HIGH;
_auto_off = millis() + AUTO_OFF_MILLIS;
_node_name = node_name;
_build_date = build_date;
_display->turnOn();
// strip off dash and commit hash by changing dash to null terminator
@@ -36,7 +35,7 @@ void UITask::begin(const char* node_name, const char* build_date, const char* fi
}
// v1.2.3 (1 Jan 2025)
sprintf(_version_info, "%s (%s)", version, _build_date);
sprintf(_version_info, "%s (%s)", version, build_date);
}
void UITask::renderCurrScreen() {

View File

@@ -7,7 +7,6 @@ class UITask {
unsigned long _next_read, _next_refresh, _auto_off;
int _prevBtnState;
const char* _node_name;
const char* _build_date;
char _version_info[32];
void renderCurrScreen();