Includes cleanup
authorsvost <ya.nowa@yandex.ru>
Sat, 10 Feb 2024 22:08:00 +0000 (01:08 +0300)
committersvost <ya.nowa@yandex.ru>
Sat, 10 Feb 2024 22:08:00 +0000 (01:08 +0300)
14 files changed:
src/checkpoints.cpp
src/init.cpp
src/kernel.cpp
src/keystore.cpp
src/noui.cpp
src/ntp.cpp
src/rpcblockchain.cpp
src/rpcnet.cpp
src/script.cpp
src/stun.cpp
src/timedata.cpp
src/txdb-leveldb.h
src/uint256.cpp
src/walletdb.cpp

index ab3c7f7..777f179 100644 (file)
@@ -6,8 +6,6 @@
 #include "main.h"
 #include "txdb-leveldb.h"
 
-#include <algorithm>
-
 
 namespace Checkpoints
 {
index 5b1ee2a..dddb575 100644 (file)
@@ -15,7 +15,6 @@
 #include "interface.h"
 #include "checkpoints.h"
 
-#include <boost/filesystem.hpp>
 #include <boost/filesystem/fstream.hpp>
 #include <boost/filesystem/convenience.hpp>
 #include <boost/interprocess/sync/file_lock.hpp>
index 639547c..a1feab8 100644 (file)
@@ -6,7 +6,6 @@
 // file COPYING or http://www.opensource.org/licenses/mit-license.php.
 
 #include "kernel.h"
-#include "wallet.h"
 #include "kernel_worker.h"
 #include "txdb-leveldb.h"
 
index 69dfb6e..b5d3d0c 100644 (file)
@@ -266,7 +266,7 @@ bool CCryptoKeyStore::CreatePrivKey(const CPubKey &pubKeyVariant, const CPubKey
                     return false;
 
                 CMalleableKey mKey = mi->first.GetMalleableKey(vchSecretH);
-                return mKey.CheckKeyVariant(R, pubKeyVariant, privKey);;
+                return mKey.CheckKeyVariant(R, pubKeyVariant, privKey);
             }
         }
 
index 8643715..50422d3 100644 (file)
@@ -5,8 +5,6 @@
 
 #include "interface.h"
 
-#include <string>
-
 static int noui_ThreadSafeMessageBox(const std::string& message, const std::string& caption, int style)
 {
     printf("%s: %s\n", caption.c_str(), message.c_str());
index 4dfcb7c..65d6f50 100644 (file)
@@ -4,8 +4,6 @@
 #include <sys/socket.h>
 #include <sys/time.h>
 #include <netinet/in.h>
-#include <arpa/inet.h>
-#include <netdb.h>
 #endif
 #ifndef WIN32
 #include <unistd.h>
index 5dec626..c537a46 100644 (file)
@@ -8,7 +8,6 @@
 #include <boost/filesystem.hpp>
 #include <boost/iostreams/device/file.hpp>
 #include <boost/iostreams/stream.hpp>
-#include <ostream>
 
 using namespace json_spirit;
 using namespace std;
@@ -77,7 +76,7 @@ double GetPoSKernelPS()
     double dStakeKernelsTriedAvg = 0;
     int nStakesHandled = 0, nStakesTime = 0;
 
-    CBlockIndex* pindex = pindexBest;;
+    CBlockIndex* pindex = pindexBest;
     CBlockIndex* pindexPrevStake = NULL;
 
     while (pindex && nStakesHandled < nPoSInterval)
index 4bb82a7..f4519b9 100644 (file)
@@ -6,7 +6,6 @@
 #include "alert.h"
 #include "wallet.h"
 #include "db.h"
-#include "walletdb.h"
 #include "net.h"
 #include "ntp.h"
 
index aa3fe8c..3acda33 100644 (file)
@@ -8,7 +8,6 @@
 #include "key.h"
 #include "main.h"
 #include "random.h"
-#include "sync.h"
 #include "util.h"
 #include "base58.h"
 
index 746c72c..16e55bc 100644 (file)
  * Of course all fields are in network format.
  */
 
-#include <stdio.h>
 #include <inttypes.h>
 #include <limits>
-#include <stdlib.h>
 #include <string.h>
 #include <sys/types.h>
 #ifdef WIN32
 #else
 #include <sys/socket.h>
 #include <netinet/in.h>
-#include <arpa/inet.h>
 #include <netdb.h>
 #endif
-#ifndef WIN32
-#include <unistd.h>
-#endif
 #include <time.h>
-#include <errno.h>
 
 #include "ministun.h"
 #include "netbase.h"
index 8e5162f..c609f81 100644 (file)
@@ -3,7 +3,6 @@
 #include "sync.h"
 #include "interface.h"
 
-#include <climits>
 
 static CCriticalSection cs_nTimeOffset;
 static uint32_t NOVACOIN_TIMEDATA_MAX_SAMPLES = 200;
index ef8b1fd..8dbd952 100644 (file)
@@ -213,4 +213,4 @@ public:
 };
 
 
-#endif // BITCOIN_DB_H
+#endif // BITCOIN_LEVELDB_H
index 8faf052..7e140a0 100644 (file)
@@ -6,9 +6,7 @@
 #include "uint256.h"
 
 #include <cassert>
-#include <cstdio>
 #include <cstring>
-#include <stdexcept>
 
 
 //////////////////////////////////////////////////////////////////////////////
index 2353df9..de2eb7a 100644 (file)
@@ -10,9 +10,6 @@
 #include <boost/version.hpp>
 #include <boost/filesystem.hpp>
 
-#include <iostream>
-#include <fstream>
-
 
 static uint64_t nAccountingEntryNumber = 0;
 extern bool fWalletUnlockMintOnly;