diff --git a/src/core/net/dnssd_server.cpp b/src/core/net/dnssd_server.cpp index f415f966dff..1bfc9f16669 100644 --- a/src/core/net/dnssd_server.cpp +++ b/src/core/net/dnssd_server.cpp @@ -666,11 +666,6 @@ void Server::Response::IncResourceRecordCount(void) } } -uint8_t Server::GetNameLength(const char *aName) -{ - return static_cast(StringLength(aName, Name::kMaxNameLength)); -} - #if OT_SHOULD_LOG_AT(OT_LOG_LEVEL_INFO) void Server::Response::Log(void) const { diff --git a/src/core/net/dnssd_server.hpp b/src/core/net/dnssd_server.hpp index 3b6b67993b9..4afde1d7dba 100644 --- a/src/core/net/dnssd_server.hpp +++ b/src/core/net/dnssd_server.hpp @@ -397,11 +397,10 @@ class Server : public InstanceLocator, private NonCopyable NameOffsets mOffsets; }; - bool IsRunning(void) const { return mSocket.IsBound(); } - static void HandleUdpReceive(void *aContext, otMessage *aMessage, const otMessageInfo *aMessageInfo); - void HandleUdpReceive(Message &aMessage, const Ip6::MessageInfo &aMessageInfo); - void ProcessQuery(Request &aRequest); - static uint8_t GetNameLength(const char *aName); + bool IsRunning(void) const { return mSocket.IsBound(); } + static void HandleUdpReceive(void *aContext, otMessage *aMessage, const otMessageInfo *aMessageInfo); + void HandleUdpReceive(Message &aMessage, const Ip6::MessageInfo &aMessageInfo); + void ProcessQuery(Request &aRequest); void ResolveByProxy(Response &aResponse, const Ip6::MessageInfo &aMessageInfo); void RemoveQueryAndPrepareResponse(ProxyQuery &aQuery, const ProxyQueryInfo &aInfo, Response &aResponse);