summaryrefslogtreecommitdiff
path: root/test/DHTPeerAnnounceStorageTest.cc
diff options
context:
space:
mode:
authorTatsuhiro Tsujikawa <tatsuhiro.t@gmail.com>2009-11-02 14:38:27 +0000
committerTatsuhiro Tsujikawa <tatsuhiro.t@gmail.com>2009-11-02 14:38:27 +0000
commit6c09ea69b88122b90afcf7aaf6fdc7f34efcdb1a (patch)
tree4adbf497f8cf5225638c77f5720182d290eb69ad /test/DHTPeerAnnounceStorageTest.cc
parent0894a7592c037e7d2754be9f9a9dd19bbbd5431e (diff)
2009-11-02 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
Removed unused function. * test/DHTPeerAnnounceStorageTest.cc
Diffstat (limited to 'test/DHTPeerAnnounceStorageTest.cc')
-rw-r--r--test/DHTPeerAnnounceStorageTest.cc11
1 files changed, 0 insertions, 11 deletions
diff --git a/test/DHTPeerAnnounceStorageTest.cc b/test/DHTPeerAnnounceStorageTest.cc
index d53f7b51..79f3f008 100644
--- a/test/DHTPeerAnnounceStorageTest.cc
+++ b/test/DHTPeerAnnounceStorageTest.cc
@@ -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