Skip to content

Commit

Permalink
Remove include in file foo.c that is already included in foo.h
Browse files Browse the repository at this point in the history
  • Loading branch information
practicalswift authored and rustyrussell committed Mar 25, 2018
1 parent d101067 commit 98f49c0
Show file tree
Hide file tree
Showing 26 changed files with 0 additions and 30 deletions.
1 change: 0 additions & 1 deletion bitcoin/base58.c
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,6 @@
#include <ccan/tal/str/str.h>
#include <common/utils.h>
#include <libbase58.h>
#include <secp256k1.h>
#include <string.h>

static bool my_sha256(void *digest, const void *data, size_t datasz)
Expand Down
1 change: 0 additions & 1 deletion bitcoin/pullpush.c
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,6 @@
#include <assert.h>
#include <ccan/endian/endian.h>
#include <ccan/mem/mem.h>
#include <ccan/tal/tal.h>

void push_varint(varint_t v,
void (*push)(const void *, size_t, void *), void *pushp)
Expand Down
2 changes: 0 additions & 2 deletions bitcoin/script.c
Original file line number Diff line number Diff line change
Expand Up @@ -3,8 +3,6 @@
#include "preimage.h"
#include "pubkey.h"
#include "script.h"
#include "signature.h"
#include "tx.h"
#include <assert.h>
#include <ccan/crypto/ripemd160/ripemd160.h>
#include <ccan/crypto/sha256/sha256.h>
Expand Down
1 change: 0 additions & 1 deletion cli/test/run-large-input.c
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,6 @@
#include <sys/socket.h>
#include <sys/stat.h>
#include <sys/types.h>
#include <sys/types.h>
#include <unistd.h>

int test_main(int argc, char *argv[]);
Expand Down
2 changes: 0 additions & 2 deletions common/bech32.c
Original file line number Diff line number Diff line change
Expand Up @@ -23,8 +23,6 @@
*/
#include "bech32.h"

#include <stdint.h>
#include <stdlib.h>
#include <string.h>

static uint32_t bech32_polymod_step(uint32_t pre) {
Expand Down
1 change: 0 additions & 1 deletion common/bolt11.c
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,6 @@
#include <lightningd/jsonrpc.h>
#include <lightningd/lightningd.h>
#include <lightningd/log.h>
#include <secp256k1_recovery.h>
#include <stdarg.h>
#include <stdio.h>
#include <wire/wire.h>
Expand Down
1 change: 0 additions & 1 deletion common/cryptomsg.c
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,6 @@
#include <ccan/crypto/sha256/sha256.h>
#include <ccan/endian/endian.h>
#include <ccan/mem/mem.h>
#include <ccan/short_types/short_types.h>
#include <ccan/take/take.h>
#include <common/cryptomsg.h>
#include <common/dev_disconnect.h>
Expand Down
1 change: 0 additions & 1 deletion common/derive_basepoints.c
Original file line number Diff line number Diff line change
@@ -1,6 +1,5 @@
#include <ccan/crypto/hkdf_sha256/hkdf_sha256.h>
#include <ccan/crypto/sha256/sha256.h>
#include <ccan/crypto/shachain/shachain.h>
#include <common/derive_basepoints.h>
#include <common/utils.h>

Expand Down
1 change: 0 additions & 1 deletion common/json.c
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,6 @@
#include <ccan/build_assert/build_assert.h>
#include <ccan/str/hex/hex.h>
#include <ccan/tal/str/str.h>
#include <ccan/tal/tal.h>
#include <errno.h>
#include <inttypes.h>
#include <stdarg.h>
Expand Down
1 change: 0 additions & 1 deletion common/memleak.c
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,6 @@
#include <backtrace.h>
#include <ccan/crypto/siphash24/siphash24.h>
#include <ccan/htable/htable.h>
#include <ccan/tal/tal.h>
#include <common/memleak.h>

#if DEVELOPER
Expand Down
1 change: 0 additions & 1 deletion common/sphinx.c
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,6 @@

#include <sodium/crypto_auth_hmacsha256.h>
#include <sodium/crypto_stream_chacha20.h>
#include <wire/wire.h>

#define BLINDING_FACTOR_SIZE 32
#define SHARED_SECRET_SIZE 32
Expand Down
2 changes: 0 additions & 2 deletions common/status.c
Original file line number Diff line number Diff line change
Expand Up @@ -4,15 +4,13 @@
#include <ccan/err/err.h>
#include <ccan/fdpass/fdpass.h>
#include <ccan/read_write_all/read_write_all.h>
#include <ccan/take/take.h>
#include <ccan/tal/str/str.h>
#include <common/daemon_conn.h>
#include <common/gen_status_wire.h>
#include <common/status.h>
#include <common/utils.h>
#include <errno.h>
#include <signal.h>
#include <stdarg.h>
#include <wire/peer_wire.h>
#include <wire/wire_sync.h>

Expand Down
1 change: 0 additions & 1 deletion gossipd/routing.c
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,6 @@
#include <common/wire_error.h>
#include <common/wireaddr.h>
#include <inttypes.h>
#include <wire/gen_onion_wire.h>
#include <wire/gen_peer_wire.h>

#ifndef SUPERVERBOSE
Expand Down
1 change: 0 additions & 1 deletion lightningd/bitcoind.c
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,6 @@
#include <ccan/tal/grab_file/grab_file.h>
#include <ccan/tal/path/path.h>
#include <ccan/tal/str/str.h>
#include <ccan/tal/tal.h>
#include <common/json.h>
#include <common/memleak.h>
#include <common/timeout.h>
Expand Down
1 change: 0 additions & 1 deletion lightningd/build_utxos.c
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,6 @@
#include <common/utils.h>
#include <lightningd/build_utxos.h>
#include <lightningd/jsonrpc.h>
#include <lightningd/lightningd.h>
#include <wally_bip32.h>


Expand Down
1 change: 0 additions & 1 deletion lightningd/chaintopology.c
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,6 @@
#include <ccan/asort/asort.h>
#include <ccan/build_assert/build_assert.h>
#include <ccan/io/io.h>
#include <ccan/structeq/structeq.h>
#include <ccan/tal/str/str.h>
#include <common/memleak.h>
#include <common/timeout.h>
Expand Down
1 change: 0 additions & 1 deletion lightningd/jsonrpc.c
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,6 @@
#include <ccan/str/hex/hex.h>
#include <ccan/tal/str/str.h>
#include <common/bech32.h>
#include <common/json.h>
#include <common/memleak.h>
#include <common/version.h>
#include <common/wireaddr.h>
Expand Down
1 change: 0 additions & 1 deletion lightningd/lightningd.c
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,6 @@
#include <common/timeout.h>
#include <common/utils.h>
#include <common/version.h>
#include <common/wireaddr.h>
#include <errno.h>
#include <fcntl.h>
#include <lightningd/bitcoind.h>
Expand Down
1 change: 0 additions & 1 deletion lightningd/log.c
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,6 @@
#include <ccan/str/hex/hex.h>
#include <ccan/tal/link/link.h>
#include <ccan/tal/str/str.h>
#include <ccan/time/time.h>
#include <common/memleak.h>
#include <common/pseudorand.h>
#include <common/utils.h>
Expand Down
1 change: 0 additions & 1 deletion lightningd/pay.c
Original file line number Diff line number Diff line change
@@ -1,5 +1,4 @@
#include "pay.h"
#include <bitcoin/preimage.h>
#include <ccan/str/hex/hex.h>
#include <ccan/structeq/structeq.h>
#include <ccan/tal/str/str.h>
Expand Down
1 change: 0 additions & 1 deletion lightningd/peer_control.c
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,6 @@
#include <unistd.h>
#include <wally_bip32.h>
#include <wire/gen_onion_wire.h>
#include <wire/peer_wire.h>

static void destroy_peer(struct peer *peer)
{
Expand Down
2 changes: 0 additions & 2 deletions lightningd/peer_htlcs.c
Original file line number Diff line number Diff line change
Expand Up @@ -4,8 +4,6 @@
#include <ccan/mem/mem.h>
#include <ccan/tal/str/str.h>
#include <channeld/gen_channel_wire.h>
#include <common/derive_basepoints.h>
#include <common/htlc_wire.h>
#include <common/overflows.h>
#include <common/sphinx.h>
#include <gossipd/gen_gossip_wire.h>
Expand Down
1 change: 0 additions & 1 deletion lightningd/watch.c
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,6 @@
* WE ASSUME NO MALLEABILITY! This requires segregated witness.
*/
#include <bitcoin/script.h>
#include <bitcoin/tx.h>
#include <ccan/crypto/siphash24/siphash24.h>
#include <ccan/ptrint/ptrint.h>
#include <ccan/structeq/structeq.h>
Expand Down
1 change: 0 additions & 1 deletion wallet/db.c
Original file line number Diff line number Diff line change
@@ -1,7 +1,6 @@
#include "db.h"

#include <ccan/tal/str/str.h>
#include <ccan/tal/tal.h>
#include <common/version.h>
#include <inttypes.h>
#include <lightningd/lightningd.h>
Expand Down
1 change: 0 additions & 1 deletion wallet/wallet.c
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,6 @@
#include <common/key_derive.h>
#include <common/wireaddr.h>
#include <inttypes.h>
#include <lightningd/invoice.h>
#include <lightningd/lightningd.h>
#include <lightningd/log.h>
#include <lightningd/peer_control.h>
Expand Down
1 change: 0 additions & 1 deletion wire/wire_io.c
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,6 @@
#include <unistd.h>
#include <ccan/io/io_plan.h>
#include <ccan/mem/mem.h>
#include <ccan/short_types/short_types.h>
#include <ccan/take/take.h>
#include <ccan/tal/tal.h>
#include <errno.h>
Expand Down

0 comments on commit 98f49c0

Please sign in to comment.