2009-11-26 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>

Removed redundant DownloadContext::hasAttribute(...) calls.
	* src/ConsoleStatCalc.cc
	* src/RequestGroup.cc
	* src/XmlRpcMethodImpl.cc
This commit is contained in:
Tatsuhiro Tsujikawa 2009-11-26 13:16:02 +00:00
parent 8ab55abf11
commit 52f11b5a21
4 changed files with 15 additions and 12 deletions

View file

@ -464,12 +464,10 @@ BDE GetPeersXmlRpcMethod::process
(StringFormat("No peer data is available for GID#%d", gid).str());
}
BDE peers = BDE::list();
if(group->getDownloadContext()->hasAttribute(bittorrent::BITTORRENT)) {
BtObject btObject = e->getBtRegistry()->get(group->getGID());
if(!btObject.isNull()) {
assert(!btObject._peerStorage.isNull());
gatherPeer(peers, btObject._peerStorage);
}
BtObject btObject = e->getBtRegistry()->get(group->getGID());
if(!btObject.isNull()) {
assert(!btObject._peerStorage.isNull());
gatherPeer(peers, btObject._peerStorage);
}
return peers;
}