Skip to content

Commit af20f9b

Browse files
committed
Merge #12542: Remove redundant includes. Conform to header include guidelines.
7ef46d0 Remove redundant includes. Conform to header include guidelines. (practicalswift) Pull request description: From the header include guidelines ([developer-notes.md](https://github.com/bitcoin/bitcoin/blob/master/doc/developer-notes.md#source-code-organization)): > "One exception is that a `.cpp` file does not need to re-include the includes already included in its corresponding `.h` file." Covered in this PR: * `rpc/util.h` includes `pubkey.h` + `utilstrencodings.h`. `rpc/util.cpp` includes `rpc/util.h`. * `util.h` includes `fs.h`. `util.cpp` includes `util.h`. Tree-SHA512: a38d9ecefd8165ad151c1ffde52cfbac968526c49db2080988bf6e6a3daa2ebeceb34d08f817e275edf7c650bf3155de01369bfb352522f8e0ae136b2289b194
2 parents 7be9a9a + 7ef46d0 commit af20f9b

File tree

3 files changed

+0
-3
lines changed

3 files changed

+0
-3
lines changed

src/rpc/util.cpp

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,6 @@
44

55
#include <key_io.h>
66
#include <keystore.h>
7-
#include <pubkey.h>
87
#include <rpc/protocol.h>
98
#include <rpc/util.h>
109
#include <tinyformat.h>

src/rpc/util.h

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,6 @@
88
#include <pubkey.h>
99
#include <script/standard.h>
1010
#include <univalue.h>
11-
#include <utilstrencodings.h>
1211

1312
#include <boost/variant/static_visitor.hpp>
1413

src/util.cpp

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,6 @@
44
// file COPYING or http://www.opensource.org/licenses/mit-license.php.
55

66
#include <util.h>
7-
#include <fs.h>
87

98
#include <chainparamsbase.h>
109
#include <random.h>

0 commit comments

Comments
 (0)