From 0c0a2c5844c8ccff79ab17d483a791d99d5bed2a Mon Sep 17 00:00:00 2001 From: leokeba Date: Tue, 6 Feb 2024 16:41:24 +0100 Subject: [PATCH] remove duplicated method in FeatureService class --- lib/framework/FeaturesService.cpp | 11 +---------- lib/framework/FeaturesService.h | 2 -- 2 files changed, 1 insertion(+), 12 deletions(-) diff --git a/lib/framework/FeaturesService.cpp b/lib/framework/FeaturesService.cpp index 0aa6bd703..2c05ae90b 100644 --- a/lib/framework/FeaturesService.cpp +++ b/lib/framework/FeaturesService.cpp @@ -87,13 +87,4 @@ void FeaturesService::addFeature(String feature, bool enabled) newFeature.enabled = enabled; userFeatures.push_back(newFeature); -} - -void FeaturesService::addFeature(String feature, bool enabled) -{ - UserFeature newFeature; - newFeature.feature = feature; - newFeature.enabled = enabled; - - userFeatures.push_back(newFeature); -} +} \ No newline at end of file diff --git a/lib/framework/FeaturesService.h b/lib/framework/FeaturesService.h index a9dc6c29b..7f524bd6c 100644 --- a/lib/framework/FeaturesService.h +++ b/lib/framework/FeaturesService.h @@ -40,8 +40,6 @@ class FeaturesService void addFeature(String feature, bool enabled); - void addFeature(String feature, bool enabled); - private: PsychicHttpServer *_server; std::vector userFeatures;