Remove all ABSL_ATTRIBUTE_UNUSED uses

pull/1124/head
Jason Rhinelander 4 years ago
parent 5fd830bc36
commit 089056ca5b

@ -77,7 +77,7 @@ namespace abyss
} }
static void static void
OnTick(ABSL_ATTRIBUTE_UNUSED llarp_tcp_conn* conn) OnTick(llarp_tcp_conn* /*conn*/)
{ {
} }

@ -330,8 +330,7 @@ namespace llarp
} }
void void
ConnectConfig::fromSection(ABSL_ATTRIBUTE_UNUSED string_view key, ConnectConfig::fromSection(string_view /*key*/, string_view val)
string_view val)
{ {
routers.emplace_back(val.begin(), val.end()); routers.emplace_back(val.begin(), val.end());
} }

@ -20,8 +20,7 @@ namespace llarp
bool bool
GotIntroMessage::HandleMessage( GotIntroMessage::HandleMessage(
llarp_dht_context *ctx, llarp_dht_context *ctx,
ABSL_ATTRIBUTE_UNUSED std::vector< std::unique_ptr< IMessage > > std::vector< std::unique_ptr< IMessage > > & /*replies*/) const
&replies) const
{ {
auto &dht = *ctx->impl; auto &dht = *ctx->impl;

@ -54,7 +54,7 @@ namespace llarp
} }
bool bool
HandleMessage(ABSL_ATTRIBUTE_UNUSED AbstractRouter* router) const override HandleMessage(AbstractRouter* /*router*/) const override
{ {
return true; return true;
} }

@ -99,8 +99,7 @@ namespace llarp
} }
bool bool
LinkIntroMessage::HandleMessage( LinkIntroMessage::HandleMessage(AbstractRouter* /*router*/) const
ABSL_ATTRIBUTE_UNUSED AbstractRouter* router) const
{ {
if(!Verify()) if(!Verify())
return false; return false;

@ -625,9 +625,8 @@ namespace llarp
} }
bool bool
Path::HandlePathTransferMessage( Path::HandlePathTransferMessage(const routing::PathTransferMessage& /*msg*/,
ABSL_ATTRIBUTE_UNUSED const routing::PathTransferMessage& msg, AbstractRouter* /*r*/)
ABSL_ATTRIBUTE_UNUSED AbstractRouter* r)
{ {
LogWarn("unwarranted path transfer message on tx=", TXID(), LogWarn("unwarranted path transfer message on tx=", TXID(),
" rx=", RXID()); " rx=", RXID());
@ -675,9 +674,8 @@ namespace llarp
} }
bool bool
Path::HandlePathConfirmMessage( Path::HandlePathConfirmMessage(const routing::PathConfirmMessage& /*msg*/,
ABSL_ATTRIBUTE_UNUSED const routing::PathConfirmMessage& msg, AbstractRouter* r)
AbstractRouter* r)
{ {
return HandlePathConfirmMessage(r); return HandlePathConfirmMessage(r);
} }
@ -725,7 +723,7 @@ namespace llarp
bool bool
Path::HandleCloseExitMessage(const routing::CloseExitMessage& msg, Path::HandleCloseExitMessage(const routing::CloseExitMessage& msg,
ABSL_ATTRIBUTE_UNUSED AbstractRouter* r) AbstractRouter* /*r*/)
{ {
/// allows exits to close from their end /// allows exits to close from their end
if(SupportsAnyRoles(ePathRoleExit | ePathRoleSVC)) if(SupportsAnyRoles(ePathRoleExit | ePathRoleSVC))

@ -191,8 +191,7 @@ namespace llarp
AbstractRouter* r) override; AbstractRouter* r) override;
bool bool
HandleHiddenServiceFrame( HandleHiddenServiceFrame(const service::ProtocolFrame& /*frame*/) override
ABSL_ATTRIBUTE_UNUSED const service::ProtocolFrame& frame) override
{ {
/// TODO: implement me /// TODO: implement me
LogWarn("Got hidden service data on transit hop"); LogWarn("Got hidden service data on transit hop");

@ -10,8 +10,7 @@ namespace llarp
PoW::~PoW() = default; PoW::~PoW() = default;
bool bool
PoW::DecodeKey(ABSL_ATTRIBUTE_UNUSED const llarp_buffer_t& k, PoW::DecodeKey(const llarp_buffer_t& /*k*/, llarp_buffer_t* /*val*/)
ABSL_ATTRIBUTE_UNUSED llarp_buffer_t* val)
{ {
// TODO: implement me // TODO: implement me
return false; return false;

@ -805,7 +805,7 @@ namespace llarp
} }
void void
Router::HandleDHTLookupForExplore(ABSL_ATTRIBUTE_UNUSED RouterID remote, Router::HandleDHTLookupForExplore(RouterID /*remote*/,
const std::vector< RouterContact > &results) const std::vector< RouterContact > &results)
{ {
for(const auto &rc : results) for(const auto &rc : results)
@ -1180,7 +1180,7 @@ namespace llarp
} }
bool bool
Router::ValidateConfig(ABSL_ATTRIBUTE_UNUSED Config *conf) const Router::ValidateConfig(Config * /*conf*/) const
{ {
return true; return true;
} }

@ -401,8 +401,7 @@ namespace llarp
} }
Response Response
HandleJSONRPC(Method_t method, HandleJSONRPC(Method_t method, const Params& /*params*/) override
ABSL_ATTRIBUTE_UNUSED const Params& params) override
{ {
auto it = m_dispatch.find(method); auto it = m_dispatch.find(method);
if(it != m_dispatch.end()) if(it != m_dispatch.end())

@ -196,10 +196,7 @@ namespace llarp
if(!EndpointUtil::HasPathToService(addr, m_state->m_RemoteSessions)) if(!EndpointUtil::HasPathToService(addr, m_state->m_RemoteSessions))
{ {
if(!EnsurePathToService( if(!EnsurePathToService(
addr, addr, [](Address, OutboundContext*) {}, 10000))
[](ABSL_ATTRIBUTE_UNUSED Address _addr,
ABSL_ATTRIBUTE_UNUSED OutboundContext* _ctx) {},
10000))
{ {
LogWarn("failed to ensure path to ", addr); LogWarn("failed to ensure path to ", addr);
} }
@ -966,7 +963,7 @@ namespace llarp
bool bool
Endpoint::EnsurePathToService(const Address remote, PathEnsureHook hook, Endpoint::EnsurePathToService(const Address remote, PathEnsureHook hook,
ABSL_ATTRIBUTE_UNUSED llarp_time_t timeoutMS) llarp_time_t /*timeoutMS*/)
{ {
static constexpr size_t NumParalellLookups = 2; static constexpr size_t NumParalellLookups = 2;
LogInfo(Name(), " Ensure Path to ", remote.ToString()); LogInfo(Name(), " Ensure Path to ", remote.ToString());
@ -1120,9 +1117,8 @@ namespace llarp
} }
bool bool
Endpoint::EnsureConvo(ABSL_ATTRIBUTE_UNUSED const AlignedBuffer< 32 > addr, Endpoint::EnsureConvo(const AlignedBuffer< 32 > /*addr*/, bool snode,
bool snode, ConvoEventListener_ptr /*ev*/)
ABSL_ATTRIBUTE_UNUSED ConvoEventListener_ptr ev)
{ {
if(snode) if(snode)
{ {

@ -460,7 +460,7 @@ namespace llarp
bool bool
ProtocolFrame::HandleMessage(routing::IMessageHandler* h, ProtocolFrame::HandleMessage(routing::IMessageHandler* h,
ABSL_ATTRIBUTE_UNUSED AbstractRouter* r) const AbstractRouter* /*r*/) const
{ {
return h->HandleHiddenServiceFrame(*this); return h->HandleHiddenServiceFrame(*this);
} }

Loading…
Cancel
Save