Weird clang unused variable CI fix

This commit is contained in:
dr7ana 2023-10-26 12:22:49 -07:00
parent b4a1ed9b85
commit 8cbae70369
2 changed files with 5 additions and 38 deletions

View File

@ -20,11 +20,10 @@ namespace llarp::exit
: llarp::path::Builder{r, numpaths, hoplen} : llarp::path::Builder{r, numpaths, hoplen}
, exit_router{routerId} , exit_router{routerId}
, packet_write_func{std::move(writepkt)} , packet_write_func{std::move(writepkt)}
, _counter{0}
, _last_use{r->now()} , _last_use{r->now()}
, m_BundleRC{false} , _parent{parent}
, m_Parent{parent}
{ {
(void)_parent;
crypto::identity_keygen(exit_key); crypto::identity_keygen(exit_key);
} }
@ -219,34 +218,6 @@ namespace llarp::exit
return true; return true;
} }
bool
BaseSession::QueueUpstreamTraffic(llarp::net::IPPacket, const size_t, service::ProtocolType)
{
// auto& queue = m_Upstream[pkt.size() / N];
// queue overflow
// if (queue.size() >= MaxUpstreamQueueLength)
// return false;
// if (queue.size() == 0)
// {
// queue.emplace_back();
// queue.back().protocol = t;
// return queue.back().PutBuffer(llarp_buffer_t{pkt}, _counter++);
// }
// auto& back = queue.back();
// // pack to nearest N
// if (back.Size() + pkt.size() > N)
// {
// queue.emplace_back();
// queue.back().protocol = t;
// return queue.back().PutBuffer(llarp_buffer_t{pkt}, _counter++);
// }
// back.protocol = t;
// return back.PutBuffer(llarp_buffer_t{pkt}, _counter++);
return true;
}
bool bool
BaseSession::IsReady() const BaseSession::IsReady() const
{ {

View File

@ -81,10 +81,6 @@ namespace llarp
void void
HandlePathBuilt(llarp::path::Path_ptr p) override; HandlePathBuilt(llarp::path::Path_ptr p) override;
bool
QueueUpstreamTraffic(
llarp::net::IPPacket pkt, const size_t packSize, service::ProtocolType t);
/// flush upstream to exit via paths /// flush upstream to exit via paths
bool bool
FlushUpstream(); FlushUpstream();
@ -163,12 +159,12 @@ namespace llarp
} }
}; };
[[maybe_unused]] uint64_t _counter; // uint64_t _counter;
llarp_time_t _last_use; llarp_time_t _last_use;
std::vector<SessionReadyFunc> m_PendingCallbacks; std::vector<SessionReadyFunc> m_PendingCallbacks;
[[maybe_unused]] const bool m_BundleRC; // const bool _bundle_RC;
[[maybe_unused]] EndpointBase* const m_Parent; EndpointBase* const _parent;
void void
CallPendingCallbacks(bool success); CallPendingCallbacks(bool success);