From 379778bde61f8589988cf113ec4c3961b8155b0a Mon Sep 17 00:00:00 2001 From: Philip Kaufmann Date: Fri, 15 Nov 2013 12:20:16 +0100 Subject: [PATCH] core: remove includes in .cpp, if header is already in .h - example: if util.h includes stdint.h, remove it from util.cpp, as util.h is the first header included in util.cpp --- src/bitcoinrpc.cpp | 2 -- src/core.cpp | 2 -- src/main.cpp | 1 - src/miner.cpp | 2 -- src/net.cpp | 3 --- src/netbase.cpp | 2 -- src/protocol.cpp | 2 -- src/script.cpp | 2 -- src/util.cpp | 2 -- src/wallet.cpp | 1 - src/walletdb.cpp | 1 - 11 files changed, 20 deletions(-) diff --git a/src/bitcoinrpc.cpp b/src/bitcoinrpc.cpp index c715f13fd2..9d45779b2c 100644 --- a/src/bitcoinrpc.cpp +++ b/src/bitcoinrpc.cpp @@ -11,8 +11,6 @@ #include "util.h" #include "wallet.h" -#include - #include #include #include diff --git a/src/core.cpp b/src/core.cpp index 80cdcb0849..7a1c90e587 100644 --- a/src/core.cpp +++ b/src/core.cpp @@ -7,8 +7,6 @@ #include "util.h" -#include - std::string COutPoint::ToString() const { return strprintf("COutPoint(%s, %u)", hash.ToString().substr(0,10).c_str(), n); diff --git a/src/main.cpp b/src/main.cpp index 72245137ed..5088de69a1 100644 --- a/src/main.cpp +++ b/src/main.cpp @@ -19,7 +19,6 @@ #include #include -#include #include #include diff --git a/src/miner.cpp b/src/miner.cpp index 397c95c624..97f434851d 100644 --- a/src/miner.cpp +++ b/src/miner.cpp @@ -10,8 +10,6 @@ #include "net.h" #include "wallet.h" -#include - double dHashesPerSec = 0.0; int64_t nHPSTimerStart = 0; diff --git a/src/net.cpp b/src/net.cpp index 954fe5947c..637f98d782 100644 --- a/src/net.cpp +++ b/src/net.cpp @@ -15,9 +15,6 @@ #include "db.h" #include "ui_interface.h" -#include -#include - #ifdef WIN32 #include #else diff --git a/src/netbase.cpp b/src/netbase.cpp index 1392fa8233..37e1df9138 100644 --- a/src/netbase.cpp +++ b/src/netbase.cpp @@ -10,8 +10,6 @@ #include "uint256.h" #include "util.h" -#include - #ifndef WIN32 #include #endif diff --git a/src/protocol.cpp b/src/protocol.cpp index 798227581e..be835507ab 100644 --- a/src/protocol.cpp +++ b/src/protocol.cpp @@ -7,8 +7,6 @@ #include "util.h" -#include - #ifndef WIN32 # include #endif diff --git a/src/script.cpp b/src/script.cpp index dbf391b2ab..fe29a88613 100644 --- a/src/script.cpp +++ b/src/script.cpp @@ -14,8 +14,6 @@ #include "uint256.h" #include "util.h" -#include - #include #include #include diff --git a/src/util.cpp b/src/util.cpp index 44186b7325..65940758a1 100644 --- a/src/util.cpp +++ b/src/util.cpp @@ -12,9 +12,7 @@ #include "uint256.h" #include "version.h" -#include #include -#include #ifndef WIN32 // for posix_fallocate diff --git a/src/wallet.cpp b/src/wallet.cpp index 6e49ef7b8e..bd147a454d 100644 --- a/src/wallet.cpp +++ b/src/wallet.cpp @@ -9,7 +9,6 @@ #include "net.h" #include -#include #include #include diff --git a/src/walletdb.cpp b/src/walletdb.cpp index 8317862f7c..061b2af1b7 100644 --- a/src/walletdb.cpp +++ b/src/walletdb.cpp @@ -12,7 +12,6 @@ #include "wallet.h" #include -#include #include #include