mirror of https://github.com/aria2/aria2
Removed unused member variable peers_.
parent
8eb1de9ef8
commit
6c44f6b8eb
|
@ -76,8 +76,6 @@ void DHTPeerLookupTask::onReceivedInternal
|
|||
tokenStorage_[util::toHex(remoteNode->getID(), DHT_ID_LENGTH)] =
|
||||
message->getToken();
|
||||
peerStorage_->addPeer(message->getValues());
|
||||
peers_.insert(peers_.end(),
|
||||
message->getValues().begin(), message->getValues().end());
|
||||
A2_LOG_INFO(fmt("Received %lu peers.",
|
||||
static_cast<unsigned long>(message->getValues().size())));
|
||||
}
|
||||
|
|
|
@ -51,8 +51,6 @@ class DHTPeerLookupTask:
|
|||
private:
|
||||
std::map<std::string, std::string> tokenStorage_;
|
||||
|
||||
std::vector<SharedHandle<Peer> > peers_;
|
||||
|
||||
SharedHandle<PeerStorage> peerStorage_;
|
||||
|
||||
SharedHandle<BtRuntime> btRuntime_;
|
||||
|
@ -72,11 +70,6 @@ public:
|
|||
|
||||
virtual void onFinish();
|
||||
|
||||
const std::vector<SharedHandle<Peer> >& getPeers() const
|
||||
{
|
||||
return peers_;
|
||||
}
|
||||
|
||||
void setBtRuntime(const SharedHandle<BtRuntime>& btRuntime);
|
||||
|
||||
void setPeerStorage(const SharedHandle<PeerStorage>& peerStorage);
|
||||
|
|
Loading…
Reference in New Issue