From 303e86a5ebb902b5cc5a2476b44f68229b577606 Mon Sep 17 00:00:00 2001 From: Proddy Date: Sat, 10 Feb 2024 15:43:59 +0100 Subject: [PATCH] remove unused comments --- lib/framework/APStatus.h | 1 - lib/framework/HttpEndpoint.h | 1 - lib/framework/MqttStatus.h | 1 - lib/framework/NTPStatus.h | 1 - lib/framework/SecurityManager.h | 5 ----- lib/framework/SystemStatus.h | 1 - lib/framework/WiFiScanner.h | 2 -- 7 files changed, 12 deletions(-) diff --git a/lib/framework/APStatus.h b/lib/framework/APStatus.h index 2b7d35a04..addda2a25 100644 --- a/lib/framework/APStatus.h +++ b/lib/framework/APStatus.h @@ -10,7 +10,6 @@ #include #include -// #define MAX_AP_STATUS_SIZE 1024 #define AP_STATUS_SERVICE_PATH "/rest/apStatus" class APStatus { diff --git a/lib/framework/HttpEndpoint.h b/lib/framework/HttpEndpoint.h index a2c18b23b..ba57c7caf 100644 --- a/lib/framework/HttpEndpoint.h +++ b/lib/framework/HttpEndpoint.h @@ -57,7 +57,6 @@ class HttpEndpoint { request->send(400); // error return; } else if (outcome == StateUpdateResult::CHANGED_RESTART) { - // TODO check if works request->send(205); // reboot required return; } else if (outcome == StateUpdateResult::CHANGED) { diff --git a/lib/framework/MqttStatus.h b/lib/framework/MqttStatus.h index f8260bd54..eb7ba980b 100644 --- a/lib/framework/MqttStatus.h +++ b/lib/framework/MqttStatus.h @@ -7,7 +7,6 @@ #include #include -// #define MAX_MQTT_STATUS_SIZE 1024 #define MQTT_STATUS_SERVICE_PATH "/rest/mqttStatus" class MqttStatus { diff --git a/lib/framework/NTPStatus.h b/lib/framework/NTPStatus.h index 152933fe3..2dec0a9f4 100644 --- a/lib/framework/NTPStatus.h +++ b/lib/framework/NTPStatus.h @@ -11,7 +11,6 @@ #include #include -// #define MAX_NTP_STATUS_SIZE 1024 #define NTP_STATUS_SERVICE_PATH "/rest/ntpStatus" class NTPStatus { diff --git a/lib/framework/SecurityManager.h b/lib/framework/SecurityManager.h index 6bc1257ac..2f1610588 100644 --- a/lib/framework/SecurityManager.h +++ b/lib/framework/SecurityManager.h @@ -18,8 +18,6 @@ #define AUTHORIZATION_HEADER_PREFIX "Bearer " #define AUTHORIZATION_HEADER_PREFIX_LEN 7 -// #define MAX_JWT_SIZE 128 - class User { public: String username; @@ -70,7 +68,6 @@ class AuthenticationPredicates { class SecurityManager { public: -#if FT_ENABLED(FT_SECURITY) /* * Authenticate, returning the user if found */ @@ -81,8 +78,6 @@ class SecurityManager { */ virtual String generateJWT(User * user) = 0; -#endif - /* * Check the request header for the Authorization token */ diff --git a/lib/framework/SystemStatus.h b/lib/framework/SystemStatus.h index 3f5c456be..4970e81b9 100644 --- a/lib/framework/SystemStatus.h +++ b/lib/framework/SystemStatus.h @@ -10,7 +10,6 @@ #include #include -// #define MAX_ESP_STATUS_SIZE 1024 #define SYSTEM_STATUS_SERVICE_PATH "/rest/systemStatus" class SystemStatus { diff --git a/lib/framework/WiFiScanner.h b/lib/framework/WiFiScanner.h index f73097477..e73a2e669 100644 --- a/lib/framework/WiFiScanner.h +++ b/lib/framework/WiFiScanner.h @@ -11,8 +11,6 @@ #define SCAN_NETWORKS_SERVICE_PATH "/rest/scanNetworks" #define LIST_NETWORKS_SERVICE_PATH "/rest/listNetworks" -// #define MAX_WIFI_SCANNER_SIZE 1024 - class WiFiScanner { public: WiFiScanner(AsyncWebServer * server, SecurityManager * securityManager);