Skip to content

Commit aedaa93

Browse files
authored
Merge pull request #18 from leokeba/leokeba/fix
remove duplicated method in FeatureService class
2 parents fd1a58e + 0c0a2c5 commit aedaa93

File tree

2 files changed

+1
-12
lines changed

2 files changed

+1
-12
lines changed

lib/framework/FeaturesService.cpp

Lines changed: 1 addition & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -87,13 +87,4 @@ void FeaturesService::addFeature(String feature, bool enabled)
8787
newFeature.enabled = enabled;
8888

8989
userFeatures.push_back(newFeature);
90-
}
91-
92-
void FeaturesService::addFeature(String feature, bool enabled)
93-
{
94-
UserFeature newFeature;
95-
newFeature.feature = feature;
96-
newFeature.enabled = enabled;
97-
98-
userFeatures.push_back(newFeature);
99-
}
90+
}

lib/framework/FeaturesService.h

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -40,8 +40,6 @@ class FeaturesService
4040

4141
void addFeature(String feature, bool enabled);
4242

43-
void addFeature(String feature, bool enabled);
44-
4543
private:
4644
PsychicHttpServer *_server;
4745
std::vector<UserFeature> userFeatures;

0 commit comments

Comments
 (0)