diff --git a/src/core/thread/mle_router.cpp b/src/core/thread/mle_router.cpp index 126e4d640..8eb1e620b 100644 --- a/src/core/thread/mle_router.cpp +++ b/src/core/thread/mle_router.cpp @@ -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) diff --git a/src/core/thread/mle_router_ftd.hpp b/src/core/thread/mle_router_ftd.hpp index 2770ed6ee..0bb1f923c 100644 --- a/src/core/thread/mle_router_ftd.hpp +++ b/src/core/thread/mle_router_ftd.hpp @@ -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. * diff --git a/src/core/thread/mle_router_mtd.hpp b/src/core/thread/mle_router_mtd.hpp index 0b6bb8db8..2c1ac9f04 100644 --- a/src/core/thread/mle_router_mtd.hpp +++ b/src/core/thread/mle_router_mtd.hpp @@ -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; }