Removed unused member variable peers_.

pull/1/head
Tatsuhiro Tsujikawa 2011-02-07 00:19:07 +09:00
parent 8eb1de9ef8
commit 6c44f6b8eb
2 changed files with 0 additions and 9 deletions

View File

@ -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())));
}

View File

@ -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);