[mle] remove unused MleRouter::RemoveNeighbor method (#3926)

This commit is contained in:
Jonathan Hui
2019-06-19 10:28:44 -07:00
committed by GitHub
parent b694b00951
commit 1b37f64ac3
3 changed files with 0 additions and 24 deletions
-12
View File
@@ -3123,18 +3123,6 @@ bool MleRouter::IsMinimalChild(uint16_t aRloc16)
return rval;
}
otError MleRouter::RemoveNeighbor(const Mac::Address &aAddress)
{
otError error = OT_ERROR_NONE;
Neighbor *neighbor;
VerifyOrExit((neighbor = GetNeighbor(aAddress)) != NULL, error = OT_ERROR_NOT_FOUND);
RemoveNeighbor(*neighbor);
exit:
return error;
}
void MleRouter::RemoveNeighbor(Neighbor &aNeighbor)
{
switch (mRole)
-11
View File
@@ -316,17 +316,6 @@ public:
*/
void SetRouterDowngradeThreshold(uint8_t aThreshold) { mRouterDowngradeThreshold = aThreshold; }
/**
* This method removes a link to a neighbor.
*
* @param[in] aAddress The link address of the neighbor.
*
* @retval OT_ERROR_NONE Successfully removed the neighbor.
* @retval OT_ERROR_NOT_FOUND Could not find the neighbor.
*
*/
otError RemoveNeighbor(const Mac::Address &aAddress);
/**
* This method removes a link to a neighbor.
*
-1
View File
@@ -81,7 +81,6 @@ public:
uint8_t GetLinkCost(uint16_t) { return 0; }
uint8_t GetCost(uint16_t) { return 0; }
otError RemoveNeighbor(const Mac::Address &) { return BecomeDetached(); }
otError RemoveNeighbor(Neighbor &) { return BecomeDetached(); }
bool IsMinimalChild(uint16_t) const { return false; }