From b352b97bc666b51c2fa9cd9e129f407c621b280e Mon Sep 17 00:00:00 2001 From: Tatsuhiro Tsujikawa Date: Sun, 20 Jun 2010 11:40:09 +0000 Subject: [PATCH] 2010-06-20 Tatsuhiro Tsujikawa Removed unused contants * src/bittorrent_helper.cc * src/bittorrent_helper.h --- ChangeLog | 6 ++++++ src/bittorrent_helper.cc | 28 ---------------------------- src/bittorrent_helper.h | 26 -------------------------- 3 files changed, 6 insertions(+), 54 deletions(-) diff --git a/ChangeLog b/ChangeLog index 4a34037d..a5a8f3b9 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,9 @@ +2010-06-20 Tatsuhiro Tsujikawa + + Removed unused contants + * src/bittorrent_helper.cc + * src/bittorrent_helper.h + 2010-06-20 Tatsuhiro Tsujikawa Use auto_delete_container to delete created Command when exception diff --git a/src/bittorrent_helper.cc b/src/bittorrent_helper.cc index 323a9f0d..7a83469c 100644 --- a/src/bittorrent_helper.cc +++ b/src/bittorrent_helper.cc @@ -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& ctx, const std::string& hashData, size_t hashLength, diff --git a/src/bittorrent_helper.h b/src/bittorrent_helper.h index 3eacc438..487b24e3 100644 --- a/src/bittorrent_helper.h +++ b/src/bittorrent_helper.h @@ -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& ctx,