mirror of https://github.com/aria2/aria2
2009-11-02 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
Removed unused function. * test/DHTPeerAnnounceStorageTest.ccpull/1/head
parent
0894a7592c
commit
6c09ea69b8
|
@ -1,3 +1,8 @@
|
|||
2009-11-02 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
|
||||
|
||||
Removed unused function.
|
||||
* test/DHTPeerAnnounceStorageTest.cc
|
||||
|
||||
2009-11-02 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
|
||||
|
||||
Only decrement cols if cols > 0
|
||||
|
|
|
@ -47,15 +47,4 @@ void DHTPeerAnnounceStorageTest::testAddAnnounce()
|
|||
CPPUNIT_ASSERT_EQUAL(std::string("192.168.0.4"), peers[1]->ipaddr);
|
||||
}
|
||||
|
||||
static SharedHandle<DownloadContext> createDownloadContext
|
||||
(const unsigned char* infoHash)
|
||||
{
|
||||
SharedHandle<DownloadContext> dctx(new DownloadContext());
|
||||
BDE torrentAttrs = BDE::dict();
|
||||
torrentAttrs[bittorrent::INFO_HASH] =
|
||||
std::string(&infoHash[0], &infoHash[DHT_ID_LENGTH]);
|
||||
dctx->setAttribute(bittorrent::BITTORRENT, torrentAttrs);
|
||||
return dctx;
|
||||
}
|
||||
|
||||
} // namespace aria2
|
||||
|
|
Loading…
Reference in New Issue