Skip to content

Commit

Permalink
[dnssd-server] remove unused private method (openthread#10024)
Browse files Browse the repository at this point in the history
  • Loading branch information
abtink authored Apr 12, 2024
1 parent f72f27f commit d0f6d17
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 10 deletions.
5 changes: 0 additions & 5 deletions src/core/net/dnssd_server.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -666,11 +666,6 @@ void Server::Response::IncResourceRecordCount(void)
}
}

uint8_t Server::GetNameLength(const char *aName)
{
return static_cast<uint8_t>(StringLength(aName, Name::kMaxNameLength));
}

#if OT_SHOULD_LOG_AT(OT_LOG_LEVEL_INFO)
void Server::Response::Log(void) const
{
Expand Down
9 changes: 4 additions & 5 deletions src/core/net/dnssd_server.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -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);
Expand Down

0 comments on commit d0f6d17

Please sign in to comment.