wifi: Remove duplicated function WifiNetDevice::DoGetChannel

This commit is contained in:
Sébastien Deronne
2017-11-11 19:55:24 +01:00
parent 3dd884abd1
commit 124add66d9
2 changed files with 1 additions and 13 deletions

View File

@@ -48,7 +48,7 @@ WifiNetDevice::GetTypeId (void)
MakeUintegerChecker<uint16_t> (1,MAX_MSDU_SIZE - LLC_SNAP_HEADER_LENGTH))
.AddAttribute ("Channel", "The channel attached to this device",
PointerValue (),
MakePointerAccessor (&WifiNetDevice::DoGetChannel),
MakePointerAccessor (&WifiNetDevice::GetChannel),
MakePointerChecker<Channel> ())
.AddAttribute ("Phy", "The PHY layer attached to this device.",
PointerValue (),
@@ -254,12 +254,6 @@ WifiNetDevice::GetChannel (void) const
return m_phy->GetChannel ();
}
Ptr<Channel>
WifiNetDevice::DoGetChannel (void) const
{
return m_phy->GetChannel ();
}
void
WifiNetDevice::SetAddress (Address address)
{

View File

@@ -156,12 +156,6 @@ private:
* Set that the link is down (i.e. STA is not associated).
*/
void LinkDown (void);
/**
* Return the Channel this device is connected to.
*
* \return Ptr to Channel object
*/
Ptr<Channel> DoGetChannel (void) const;
/**
* Complete the configuration of this Wi-Fi device by
* connecting all lower components (e.g. MAC, WifiRemoteStation) together.