diff options
author | Wladimir J. van der Laan <laanwj@gmail.com> | 2017-12-12 14:37:23 +0100 |
---|---|---|
committer | Wladimir J. van der Laan <laanwj@gmail.com> | 2017-12-12 14:56:25 +0100 |
commit | 5d132e8b974652d96466a1b73ec1231614719fe2 (patch) | |
tree | cbb8e4edcedf9151adc6f6e0583a20b1ec47c32b /src/rpc | |
parent | 214046f69b1978129030ba1f65007d57b29f0761 (diff) | |
parent | a720b928c80f18d340173f39f63e7ef9cfb367c1 (diff) |
Merge #10574: Remove includes in .cpp files for things the corresponding .h file already included
a720b92 Remove includes in .cpp files for things the corresponding .h file already included (practicalswift)
Pull request description:
Remove includes in .cpp files for things the corresponding .h file already included.
Example case:
* `addrdb.cpp` includes `addrdb.h` and `fs.h`
* `addrdb.h` includes `fs.h`
Then remove the direct inclusion of `fs.h` in `addrman.cpp` and rely on the indirect inclusion of `fs.h` via the included `addrdb.h`.
In line with the header include guideline (see #10575).
Tree-SHA512: 8704b9de3011a4c234db336a39f7d2c139e741cf0f7aef08a5d3e05197e1e18286b863fdab25ae9638af4ff86b3d52e5cab9eed66bfa2476063aa5c79f9b0346
Diffstat (limited to 'src/rpc')
-rw-r--r-- | src/rpc/client.cpp | 2 | ||||
-rw-r--r-- | src/rpc/mining.cpp | 2 | ||||
-rw-r--r-- | src/rpc/protocol.cpp | 1 | ||||
-rw-r--r-- | src/rpc/server.cpp | 2 |
4 files changed, 0 insertions, 7 deletions
diff --git a/src/rpc/client.cpp b/src/rpc/client.cpp index a595b6ec27..f2fa114313 100644 --- a/src/rpc/client.cpp +++ b/src/rpc/client.cpp @@ -10,8 +10,6 @@ #include <set> #include <stdint.h> -#include <univalue.h> - class CRPCConvertParam { public: diff --git a/src/rpc/mining.cpp b/src/rpc/mining.cpp index 1753ecd3fc..d003be4954 100644 --- a/src/rpc/mining.cpp +++ b/src/rpc/mining.cpp @@ -29,8 +29,6 @@ #include <memory> #include <stdint.h> -#include <univalue.h> - unsigned int ParseConfirmTarget(const UniValue& value) { int target = value.get_int(); diff --git a/src/rpc/protocol.cpp b/src/rpc/protocol.cpp index 4cb28c2104..d999a08d74 100644 --- a/src/rpc/protocol.cpp +++ b/src/rpc/protocol.cpp @@ -12,7 +12,6 @@ #include <utiltime.h> #include <version.h> -#include <stdint.h> #include <fstream> /** diff --git a/src/rpc/server.cpp b/src/rpc/server.cpp index 0e4cd41689..2e7e0ba474 100644 --- a/src/rpc/server.cpp +++ b/src/rpc/server.cpp @@ -14,8 +14,6 @@ #include <util.h> #include <utilstrencodings.h> -#include <univalue.h> - #include <boost/bind.hpp> #include <boost/signals2/signal.hpp> #include <boost/algorithm/string/case_conv.hpp> // for to_upper() |