From a98f1d45048c6c2891a6c62f40404027ea9f9c1d Mon Sep 17 00:00:00 2001 From: Rick Watson Date: Tue, 30 Apr 2019 00:30:09 +0100 Subject: [PATCH] Remove redundant servicePath variable from SettingsPersistence --- src/SettingsPersistence.h | 2 +- src/SettingsService.h | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/src/SettingsPersistence.h b/src/SettingsPersistence.h index a0f0ec4..5b50126 100644 --- a/src/SettingsPersistence.h +++ b/src/SettingsPersistence.h @@ -88,7 +88,7 @@ protected: public: - SettingsPersistence(FS* fs, char const* servicePath, char const* filePath): + SettingsPersistence(FS* fs, char const* filePath): _fs(fs), _filePath(filePath) {} virtual ~SettingsPersistence() {} diff --git a/src/SettingsService.h b/src/SettingsService.h index 409c6d3..65a771a 100644 --- a/src/SettingsService.h +++ b/src/SettingsService.h @@ -60,7 +60,7 @@ private: public: 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 _server->on(servicePath, HTTP_GET, std::bind(&SettingsService::fetchConfig, this, std::placeholders::_1));