diff options
| author | Tatsuhiro Tsujikawa <tatsuhiro.t@gmail.com> | 2009-11-02 14:38:27 +0000 |
|---|---|---|
| committer | Tatsuhiro Tsujikawa <tatsuhiro.t@gmail.com> | 2009-11-02 14:38:27 +0000 |
| commit | 6c09ea69b88122b90afcf7aaf6fdc7f34efcdb1a (patch) | |
| tree | 4adbf497f8cf5225638c77f5720182d290eb69ad /test/DHTPeerAnnounceStorageTest.cc | |
| parent | 0894a7592c037e7d2754be9f9a9dd19bbbd5431e (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.cc | 11 |
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 |
