Nils Maier před 11 roky
rodič
revize
c694a05797
3 změnil soubory, kde provedl 2 přidání a 5 odebrání
  1. 0 4
      src/DownloadCommand.cc
  2. 2 0
      src/Platform.cc
  3. 0 1
      src/RpcMethodImpl.cc

+ 0 - 4
src/DownloadCommand.cc

@@ -75,10 +75,6 @@
 
 namespace aria2 {
 
-namespace {
-const size_t BUFSIZE = 16*1024;
-} // namespace
-
 DownloadCommand::DownloadCommand(cuid_t cuid,
                                  const std::shared_ptr<Request>& req,
                                  const std::shared_ptr<FileEntry>& fileEntry,

+ 2 - 0
src/Platform.cc

@@ -71,6 +71,7 @@
 #define A2_MIN_GCRYPT_VERSION "1.2.4"
 
 namespace {
+#ifdef HAVE_LIBGNUTLS
   void gnutls_log_callback(int level, const char *str)
   {
     using namespace aria2;
@@ -79,6 +80,7 @@ namespace {
     msg.resize(msg.size() - 1);
     A2_LOG_DEBUG(fmt("GnuTLS: <%d> %s", level, msg.c_str()));
   }
+#endif // HAVE_LIBGNUTLS
 }
 
 

+ 0 - 1
src/RpcMethodImpl.cc

@@ -86,7 +86,6 @@ namespace rpc {
 namespace {
 const char VLB_TRUE[] = "true";
 const char VLB_FALSE[] = "false";
-const char VLB_OK[]  = "OK";
 const char VLB_ACTIVE[] = "active";
 const char VLB_WAITING[] = "waiting";
 const char VLB_PAUSED[] = "paused";