Remove redundant servicePath variable from SettingsPersistence

This commit is contained in:
Rick Watson 2019-04-30 00:30:09 +01:00
parent e8de21aaf4
commit a98f1d4504
2 changed files with 2 additions and 2 deletions

View File

@ -88,7 +88,7 @@ protected:
public: public:
SettingsPersistence(FS* fs, char const* servicePath, char const* filePath): SettingsPersistence(FS* fs, char const* filePath):
_fs(fs), _filePath(filePath) {} _fs(fs), _filePath(filePath) {}
virtual ~SettingsPersistence() {} virtual ~SettingsPersistence() {}

View File

@ -60,7 +60,7 @@ private:
public: public:
SettingsService(AsyncWebServer* server, FS* fs, char const* servicePath, char const* filePath): SettingsService(AsyncWebServer* server, FS* fs, char const* servicePath, char const* filePath):
SettingsPersistence(fs, servicePath, filePath), _server(server) { SettingsPersistence(fs, filePath), _server(server) {
// configure fetch config handler // configure fetch config handler
_server->on(servicePath, HTTP_GET, std::bind(&SettingsService::fetchConfig, this, std::placeholders::_1)); _server->on(servicePath, HTTP_GET, std::bind(&SettingsService::fetchConfig, this, std::placeholders::_1));