From 48cde39c583de789601a5daf9aebead2cc5f0b18 Mon Sep 17 00:00:00 2001 From: Stefano Avallone Date: Thu, 3 Jun 2021 18:05:11 +0200 Subject: [PATCH] wifi: Remove unused WifiPhy::GetPpduFieldDuration method --- src/wifi/model/wifi-phy.cc | 6 ------ src/wifi/model/wifi-phy.h | 10 ---------- 2 files changed, 16 deletions(-) diff --git a/src/wifi/model/wifi-phy.cc b/src/wifi/model/wifi-phy.cc index b06fac1fd..9ce4a83da 100644 --- a/src/wifi/model/wifi-phy.cc +++ b/src/wifi/model/wifi-phy.cc @@ -1606,12 +1606,6 @@ WifiPhy::CalculatePhyPreambleAndHeaderDuration (const WifiTxVector& txVector) return GetStaticPhyEntity (txVector.GetModulationClass ())->CalculatePhyPreambleAndHeaderDuration (txVector); } -Time -WifiPhy::GetPpduFieldDuration (WifiPpduField field, const WifiTxVector& txVector) -{ - return GetStaticPhyEntity (txVector.GetModulationClass ())->GetDuration (field, txVector); -} - Time WifiPhy::CalculateTxDuration (uint32_t size, const WifiTxVector& txVector, WifiPhyBand band, uint16_t staId) { diff --git a/src/wifi/model/wifi-phy.h b/src/wifi/model/wifi-phy.h index 842bd8fb9..8a3cef1c3 100644 --- a/src/wifi/model/wifi-phy.h +++ b/src/wifi/model/wifi-phy.h @@ -263,16 +263,6 @@ public: * \return the total amount of time this PHY will stay busy for the transmission of the PHY preamble and PHY header. */ static Time CalculatePhyPreambleAndHeaderDuration (const WifiTxVector& txVector); - /** - * Get the duration of the PPDU field (or group of fields) - * for the given transmission parameters. - * - * \param field the PPDU field (or group of fields) - * \param txVector the transmission parameters - * - * \return the duration of the PPDU field - */ - static Time GetPpduFieldDuration (WifiPpduField field, const WifiTxVector& txVector); /** * \return the preamble detection duration, which is the time correlation needs to detect the start of an incoming frame. */