mirror of https://github.com/aria2/aria2
2010-06-20 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
Removed unused contants * src/bittorrent_helper.cc * src/bittorrent_helper.hpull/1/head
parent
0f0fc5f198
commit
b352b97bc6
|
@ -1,3 +1,9 @@
|
|||
2010-06-20 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
|
||||
|
||||
Removed unused contants
|
||||
* src/bittorrent_helper.cc
|
||||
* src/bittorrent_helper.h
|
||||
|
||||
2010-06-20 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
|
||||
|
||||
Use auto_delete_container to delete created Command when exception
|
||||
|
|
|
@ -99,40 +99,12 @@ static const std::string C_CREATED_BY("created by");
|
|||
|
||||
static const std::string DEFAULT_PEER_ID_PREFIX("aria2-");
|
||||
|
||||
const std::string INFO_HASH("infoHash");
|
||||
|
||||
const std::string MODE("mode");
|
||||
|
||||
const std::string PRIVATE("private");
|
||||
|
||||
const std::string ANNOUNCE_LIST("announceList");
|
||||
|
||||
const std::string NODES("nodes");
|
||||
|
||||
const std::string HOSTNAME("hostname");
|
||||
|
||||
const std::string PORT("port");
|
||||
|
||||
const std::string NAME("name");
|
||||
|
||||
const std::string URL_LIST("urlList");
|
||||
|
||||
const std::string CREATION_DATE("creationDate");
|
||||
|
||||
const std::string COMMENT("comment");
|
||||
|
||||
const std::string CREATED_BY("createdBy");
|
||||
|
||||
const std::string BITTORRENT("bittorrent");
|
||||
|
||||
const std::string MULTI("multi");
|
||||
|
||||
const std::string SINGLE("single");
|
||||
|
||||
const std::string METADATA_SIZE("metadataSize");
|
||||
|
||||
const std::string METADATA("metadata");
|
||||
|
||||
static void extractPieceHash(const SharedHandle<DownloadContext>& ctx,
|
||||
const std::string& hashData,
|
||||
size_t hashLength,
|
||||
|
|
|
@ -53,29 +53,6 @@ class Randomizer;
|
|||
|
||||
namespace bittorrent {
|
||||
|
||||
extern const std::string INFO_HASH;
|
||||
|
||||
extern const std::string MODE;
|
||||
|
||||
extern const std::string PRIVATE;
|
||||
|
||||
extern const std::string ANNOUNCE_LIST;
|
||||
|
||||
extern const std::string NODES;
|
||||
|
||||
extern const std::string HOSTNAME;
|
||||
|
||||
extern const std::string PORT;
|
||||
|
||||
extern const std::string NAME;
|
||||
|
||||
extern const std::string URL_LIST;
|
||||
|
||||
extern const std::string CREATION_DATE;
|
||||
|
||||
extern const std::string COMMENT;
|
||||
|
||||
extern const std::string CREATED_BY;
|
||||
|
||||
extern const std::string SINGLE;
|
||||
|
||||
|
@ -83,9 +60,6 @@ extern const std::string MULTI;
|
|||
|
||||
extern const std::string BITTORRENT;
|
||||
|
||||
extern const std::string METADATA_SIZE;
|
||||
|
||||
extern const std::string METADATA;
|
||||
|
||||
void load(const std::string& torrentFile,
|
||||
const SharedHandle<DownloadContext>& ctx,
|
||||
|
|
Loading…
Reference in New Issue