From 002cc8e912a50abda089998c55c8c7f731b5cbf6 Mon Sep 17 00:00:00 2001 From: Abtin Keshavarzian Date: Tue, 1 Sep 2020 14:29:42 -0700 Subject: [PATCH] [network-data] remove unused/undefined method decelerations (#5480) --- src/core/thread/network_data_leader.hpp | 11 ----------- src/core/thread/network_data_leader_ftd.cpp | 2 +- src/core/thread/network_data_local.cpp | 2 +- src/core/thread/tmf.hpp | 1 - 4 files changed, 2 insertions(+), 14 deletions(-) diff --git a/src/core/thread/network_data_leader.hpp b/src/core/thread/network_data_leader.hpp index 81991e1a4..f8691251b 100644 --- a/src/core/thread/network_data_leader.hpp +++ b/src/core/thread/network_data_leader.hpp @@ -170,17 +170,6 @@ public: const Message &aMessage, uint16_t aMessageOffset); - /** - * This method sends a Server Data Notification message to the Leader indicating an invalid RLOC16. - * - * @param[in] aRloc16 The invalid RLOC16 to notify. - * - * @retval OT_ERROR_NONE Successfully enqueued the notification message. - * @retval OT_ERROR_NO_BUFS Insufficient message buffers to generate the notification message. - * - */ - otError SendServerDataNotification(uint16_t aRloc16); - /** * This method returns a pointer to the Commissioning Data. * diff --git a/src/core/thread/network_data_leader_ftd.cpp b/src/core/thread/network_data_leader_ftd.cpp index b62f67d89..6ea87b543 100644 --- a/src/core/thread/network_data_leader_ftd.cpp +++ b/src/core/thread/network_data_leader_ftd.cpp @@ -1384,7 +1384,7 @@ otError Leader::RemoveStaleChildEntries(Coap::ResponseHandler aHandler, void *aC Get().FindChild(rloc16, Child::kInStateValid) == nullptr) { // In Thread 1.1 Specification 5.15.6.1, only one RLOC16 TLV entry may appear in SRV_DATA.ntf. - error = NetworkData::SendServerDataNotification(rloc16, aHandler, aContext); + error = SendServerDataNotification(rloc16, aHandler, aContext); ExitNow(); } } diff --git a/src/core/thread/network_data_local.cpp b/src/core/thread/network_data_local.cpp index 8b39b6b34..e290096bb 100644 --- a/src/core/thread/network_data_local.cpp +++ b/src/core/thread/network_data_local.cpp @@ -379,7 +379,7 @@ otError Local::UpdateInconsistentServerData(Coap::ResponseHandler aHandler, void mOldRloc = Mac::kShortAddrInvalid; } - SuccessOrExit(error = NetworkData::SendServerDataNotification(mOldRloc, aHandler, aContext)); + SuccessOrExit(error = SendServerDataNotification(mOldRloc, aHandler, aContext)); mOldRloc = rloc; exit: diff --git a/src/core/thread/tmf.hpp b/src/core/thread/tmf.hpp index cebd9c6e9..ec9aad89e 100644 --- a/src/core/thread/tmf.hpp +++ b/src/core/thread/tmf.hpp @@ -82,7 +82,6 @@ public: bool IsTmfMessage(const Ip6::MessageInfo &aMessageInfo) const; private: - otError Start(uint16_t aPort); static otError Filter(const ot::Coap::Message &aMessage, const Ip6::MessageInfo &aMessageInfo, void *aContext); };