Skip to content

Commit

Permalink
Remove copy constructor in GroupObject
Browse files Browse the repository at this point in the history
  • Loading branch information
mgeramb committed Jul 20, 2024
1 parent ed87176 commit 80da75f
Show file tree
Hide file tree
Showing 2 changed files with 0 additions and 21 deletions.
14 changes: 0 additions & 14 deletions src/knx/group_object.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down
7 changes: 0 additions & 7 deletions src/knx/group_object.h
Original file line number Diff line number Diff line change
Expand Up @@ -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.
*/
Expand Down

0 comments on commit 80da75f

Please sign in to comment.