remove unused Preferences code (cc @mc-hamster for review)

(noticed because of a compiler warning)
1.2-legacy
Kevin Hester 2021-03-28 12:07:43 +08:00
rodzic fc96500329
commit c7f411fc7c
1 zmienionych plików z 0 dodań i 6 usunięć

Wyświetl plik

@ -11,7 +11,6 @@
#include <HTTPBodyParser.hpp>
#include <HTTPMultipartBodyParser.hpp>
#include <HTTPURLEncodedBodyParser.hpp>
#include <Preferences.h>
#include <SPIFFS.h>
#ifndef NO_ESP32
@ -837,11 +836,6 @@ void handleReport(HTTPRequest *req, HTTPResponse *res)
ResourceParameters *params = req->getParams();
std::string content;
Preferences preferences;
preferences.begin("meshtastic", false);
// uint32_t rebootCounter = preferences.getUInt("rebootCounter", 0);
if (!params->getQueryParameter("content", content)) {
content = "json";
}