From 55114f4b684da12ac548810e1c7df90544eda1eb Mon Sep 17 00:00:00 2001 From: Tolik Zinovyev Date: Mon, 27 Nov 2023 11:12:39 -0500 Subject: [PATCH] wifi: replace destructors with default destructors. --- src/wifi/model/interference-helper.cc | 6 ------ src/wifi/model/interference-helper.h | 1 - src/wifi/model/wifi-tx-vector.cc | 5 ----- src/wifi/model/wifi-tx-vector.h | 1 - 4 files changed, 13 deletions(-) diff --git a/src/wifi/model/interference-helper.cc b/src/wifi/model/interference-helper.cc index 99dff14ff..746f4a049 100644 --- a/src/wifi/model/interference-helper.cc +++ b/src/wifi/model/interference-helper.cc @@ -53,12 +53,6 @@ Event::Event(Ptr ppdu, Time duration, RxPowerWattPerChannelBand& { } -Event::~Event() -{ - m_ppdu = nullptr; - m_rxPowerW.clear(); -} - Ptr Event::GetPpdu() const { diff --git a/src/wifi/model/interference-helper.h b/src/wifi/model/interference-helper.h index 5718cf69d..6c00181f9 100644 --- a/src/wifi/model/interference-helper.h +++ b/src/wifi/model/interference-helper.h @@ -48,7 +48,6 @@ class Event : public SimpleRefCount * \param rxPower the received power per band (W) */ Event(Ptr ppdu, Time duration, RxPowerWattPerChannelBand&& rxPower); - ~Event(); /** * Return the PPDU. diff --git a/src/wifi/model/wifi-tx-vector.cc b/src/wifi/model/wifi-tx-vector.cc index 2e27c4fa2..b21be482d 100644 --- a/src/wifi/model/wifi-tx-vector.cc +++ b/src/wifi/model/wifi-tx-vector.cc @@ -123,11 +123,6 @@ WifiTxVector::WifiTxVector(const WifiTxVector& txVector) } } -WifiTxVector::~WifiTxVector() -{ - m_muUserInfos.clear(); -} - bool WifiTxVector::GetModeInitialized() const { diff --git a/src/wifi/model/wifi-tx-vector.h b/src/wifi/model/wifi-tx-vector.h index 999ab63cb..1d24eeb0f 100644 --- a/src/wifi/model/wifi-tx-vector.h +++ b/src/wifi/model/wifi-tx-vector.h @@ -114,7 +114,6 @@ class WifiTxVector HeMuUserInfoMap; WifiTxVector(); - ~WifiTxVector(); /** * Create a TXVECTOR with the given parameters. *