Skip to content

Commit 6ea7815

Browse files
committed
LteAirFrame: dup() no longer copies controlinfo (assert there is no controlinfo)
1 parent 184b291 commit 6ea7815

1 file changed

Lines changed: 1 addition & 7 deletions

File tree

src/simu5g/stack/phy/packet/LteAirFrame.h

Lines changed: 1 addition & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -41,13 +41,7 @@ class LteAirFrame : public LteAirFrame_Base
4141
{
4242
LteAirFrame_Base::operator=(other);
4343
this->remoteUnitPhyDataVector = other.remoteUnitPhyDataVector;
44-
45-
// copy the attached control info, if any
46-
if (other.getControlInfo() != nullptr) {
47-
UserControlInfo *info = check_and_cast<UserControlInfo *>(other.getControlInfo());
48-
UserControlInfo *info_dup = info->dup();
49-
this->setControlInfo(info_dup);
50-
}
44+
ASSERT(other.getControlInfo() == nullptr);
5145
return *this;
5246
}
5347

0 commit comments

Comments
 (0)