aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorPhilip Kaufmann <phil.kaufmann@t-online.de>2013-11-15 12:20:16 +0100
committerPhilip Kaufmann <phil.kaufmann@t-online.de>2013-11-15 12:20:16 +0100
commit379778bde61f8589988cf113ec4c3961b8155b0a (patch)
tree624271d831bf2b74030bb33ab91f1bbffa4a057a /src
parent4fc241235c41fbf7f2592dfee11db5b7b71c17ad (diff)
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
Diffstat (limited to 'src')
-rw-r--r--src/bitcoinrpc.cpp2
-rw-r--r--src/core.cpp2
-rw-r--r--src/main.cpp1
-rw-r--r--src/miner.cpp2
-rw-r--r--src/net.cpp3
-rw-r--r--src/netbase.cpp2
-rw-r--r--src/protocol.cpp2
-rw-r--r--src/script.cpp2
-rw-r--r--src/util.cpp2
-rw-r--r--src/wallet.cpp1
-rw-r--r--src/walletdb.cpp1
11 files changed, 0 insertions, 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 <stdint.h>
-
#include <boost/algorithm/string.hpp>
#include <boost/asio.hpp>
#include <boost/asio/ssl.hpp>
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 <stdint.h>
-
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 <inttypes.h>
#include <sstream>
-#include <stdint.h>
#include <boost/algorithm/string/replace.hpp>
#include <boost/filesystem.hpp>
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 <stdint.h>
-
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 <inttypes.h>
-#include <stdint.h>
-
#ifdef WIN32
#include <string.h>
#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 <stdint.h>
-
#ifndef WIN32
#include <fcntl.h>
#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 <stdint.h>
-
#ifndef WIN32
# include <arpa/inet.h>
#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 <stdint.h>
-
#include <boost/foreach.hpp>
#include <boost/tuple/tuple.hpp>
#include <boost/tuple/tuple_comparison.hpp>
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 <inttypes.h>
#include <stdarg.h>
-#include <stdint.h>
#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 <inttypes.h>
-#include <stdint.h>
#include <boost/algorithm/string/replace.hpp>
#include <openssl/rand.h>
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 <inttypes.h>
-#include <stdint.h>
#include <boost/filesystem.hpp>
#include <boost/foreach.hpp>