Skip to content

Commit 1225202

Browse files
committed
Remove unnecessary dtor
1 parent 5562fbc commit 1225202

11 files changed

+0
-36
lines changed

src/ksf/comp/ksMqttConnector.cpp

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -32,8 +32,6 @@ using namespace std::placeholders;
3232

3333
namespace ksf::comps
3434
{
35-
ksMqttConnector::~ksMqttConnector() = default;
36-
3735
ksMqttConnector::ksMqttConnector(bool sendConnectionStatus, bool usePersistentSession)
3836
: reconnectTimer(KSF_MQTT_RECONNECT_DELAY_MS)
3937
{

src/ksf/comp/ksMqttConnector.h

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -195,10 +195,5 @@ namespace ksf::comps
195195
@param fingerprint MQTT broker certificate fingerprint - if empty, secure connection won't be used
196196
*/
197197
void setupConnection(const std::string broker, const std::string& port, std::string login, std::string password, std::string prefix, const std::string& fingerprint);
198-
199-
/*!
200-
@brief Destructor (for uniqueptr purposes).
201-
*/
202-
virtual ~ksMqttConnector();
203198
};
204199
}

src/ksf/ksApplication.cpp

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -13,8 +13,6 @@
1313

1414
namespace ksf
1515
{
16-
ksApplication::~ksApplication() = default;
17-
1816
bool ksApplication::loop()
1917
{
2018
/* This call will keep millis64 on track (handles rollover). */

src/ksf/ksApplication.h

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -143,9 +143,5 @@ namespace ksf
143143
*/
144144
void setLogCallback(AppLogCallbackFunc_t logCallback);
145145
#endif
146-
/*!
147-
@brief Destructs application.
148-
*/
149-
virtual ~ksApplication();
150146
};
151147
}

src/ksf/ksComponent.cpp

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -11,8 +11,6 @@
1111

1212
namespace ksf
1313
{
14-
ksComponent::~ksComponent() = default;
15-
1614
bool ksComponent::init(ksApplication* app)
1715
{
1816
return true;

src/ksf/ksComponent.h

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -77,10 +77,5 @@ namespace ksf
7777
@return True on success, false on fail.
7878
*/
7979
virtual bool postInit(ksApplication* app);
80-
81-
/*!
82-
@brief Virtual destructor to ensure proper cleanup of derived classes
83-
*/
84-
virtual ~ksComponent();
8580
};
8681
}

src/ksf/ksRtti.h

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -25,8 +25,6 @@ namespace ksf
2525
class ksRtti
2626
{
2727
public:
28-
virtual ~ksRtti() = default;
29-
3028
/*!
3129
@brief Retrieves type ID of the object.
3230
@return Object type ID.

src/ksf/misc/ksDomainQuery.cpp

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -26,8 +26,6 @@ namespace ksf::misc
2626
udp->write(static_cast<uint8_t>(value & 0xFF));
2727
}
2828

29-
ksDomainQuery::~ksDomainQuery() = default;
30-
3129
ksDomainQuery::ksDomainQuery() : ksDomainQuery(KSF_DOMAIN_QUERY_DNS_SERVER) {}
3230

3331
ksDomainQuery::ksDomainQuery(IPAddress dnsServer)

src/ksf/misc/ksDomainQuery.h

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -91,10 +91,5 @@ namespace ksf::misc
9191
@brief Handles resolver tasks, such as sending queries and receiving responses.
9292
*/
9393
void process();
94-
95-
/*!
96-
@brief Destructor.
97-
*/
98-
virtual ~ksDomainQuery();
9994
};
10095
}

src/ksf/misc/ksSimpleTimer.cpp

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -13,8 +13,6 @@
1313

1414
namespace ksf::misc
1515
{
16-
ksSimpleTimer::~ksSimpleTimer() = default;
17-
1816
ksSimpleTimer::ksSimpleTimer(uint32_t intervalMs)
1917
{
2018
setInterval(intervalMs);

0 commit comments

Comments
 (0)