From 80da75f80abfba1b6b5eb032d2334ae9cbfb678b Mon Sep 17 00:00:00 2001 From: Michael Geramb Date: Sat, 20 Jul 2024 14:52:15 +0200 Subject: [PATCH] Remove copy constructor in GroupObject --- src/knx/group_object.cpp | 14 -------------- src/knx/group_object.h | 7 ------- 2 files changed, 21 deletions(-) diff --git a/src/knx/group_object.cpp b/src/knx/group_object.cpp index e19f0c8f..7b172d5c 100644 --- a/src/knx/group_object.cpp +++ b/src/knx/group_object.cpp @@ -20,20 +20,6 @@ GroupObject::GroupObject() #endif } -// getting the sizeInMemory requires the _table object. For this reason, the copy constructor should not be used. -// -// GroupObject::GroupObject(const GroupObject& other) -// { -// _data = new uint8_t[other._table != nullptr ? other.sizeInMemory() : other._dataLength]; -// _commFlagEx = other._commFlagEx; -// _dataLength = other._dataLength; -// _asap = other._asap; -// #ifndef SMALL_GROUPOBJECT -// _updateHandler = other._updateHandler; -// #endif -// memcpy(_data, other._data, _dataLength); -// } - GroupObject::~GroupObject() { if (_data) diff --git a/src/knx/group_object.h b/src/knx/group_object.h index 31449da8..244fab67 100644 --- a/src/knx/group_object.h +++ b/src/knx/group_object.h @@ -57,13 +57,6 @@ class GroupObject * The constructor. */ GroupObject(); - /** - * The copy constructor. - */ - - // getting the sizeInMemory requires the _table object. For this reason, the copy constructor should not be used - // GroupObject(const GroupObject& other); - /** * The destructor. */