From c979e30aec3d63e06d4fbbb3d7210a26476d70e0 Mon Sep 17 00:00:00 2001 From: Grigoris Pavlakis <grigpavl@ece.auth.gr> Date: Sun, 18 Aug 2019 01:48:40 +0300 Subject: [PATCH] Remove unneeded default constructor Suggested by @xlxs41 --- inc/Services/Parameter.hpp | 1 - src/Services/Parameter.cpp | 6 ------ 2 files changed, 7 deletions(-) diff --git a/inc/Services/Parameter.hpp b/inc/Services/Parameter.hpp index 247be346..36b94b43 100644 --- a/inc/Services/Parameter.hpp +++ b/inc/Services/Parameter.hpp @@ -59,7 +59,6 @@ class Parameter { ValueType currentValue = 0; public: - Parameter(); Parameter(uint8_t newPtc, uint8_t newPfc, uint32_t initialValue = 0, UpdatePtr newPtr = nullptr); void setCurrentValue(ValueType newVal); diff --git a/src/Services/Parameter.cpp b/src/Services/Parameter.cpp index d6bcaa2b..8bfab448 100644 --- a/src/Services/Parameter.cpp +++ b/src/Services/Parameter.cpp @@ -1,11 +1,5 @@ #include "Services/Parameter.hpp" -Parameter::Parameter() { - ptc = 0; - pfc = 0; - ptr = nullptr; -} - Parameter::Parameter(uint8_t newPtc, uint8_t newPfc, uint32_t initialValue, UpdatePtr newPtr) { ptc = newPtc; pfc = newPfc; -- GitLab