Ver código fonte

Code cleanup

Tatsuhiro Tsujikawa 13 anos atrás
pai
commit
c522d79d89

+ 2 - 5
src/DefaultBtProgressInfoFile.cc

@@ -63,9 +63,6 @@
 
 namespace aria2 {
 
-const std::string DefaultBtProgressInfoFile::V0000("0000");
-const std::string DefaultBtProgressInfoFile::V0001("0001");
-
 namespace {
 std::string createFilename
 (const SharedHandle<DownloadContext>& dctx, const std::string& suffix)
@@ -220,9 +217,9 @@ void DefaultBtProgressInfoFile::load()
   READ_CHECK(fp, versionBuf, sizeof(versionBuf));
   std::string versionHex = util::toHex(versionBuf, sizeof(versionBuf));
   int version;
-  if(DefaultBtProgressInfoFile::V0000 == versionHex) {
+  if("0000" == versionHex) {
     version = 0;
-  } else if(DefaultBtProgressInfoFile::V0001 == versionHex) {
+  } else if("0001" == versionHex) {
     version = 1;
   } else {
     throw DL_ABORT_EX

+ 0 - 3
src/DefaultBtProgressInfoFile.h

@@ -57,9 +57,6 @@ private:
   std::string filename_;
 
   bool isTorrentDownload();
-
-  static const std::string V0000;
-  static const std::string V0001;
 public:
   DefaultBtProgressInfoFile(const SharedHandle<DownloadContext>& btContext,
                             const SharedHandle<PieceStorage>& pieceStorage,