Browse Source

Remove redundant code

ppa-0.6.1
practicalswift 6 years ago
committed by Rusty Russell
parent
commit
0f7b11bdc2
  1. 1
      connectd/connect.c
  2. 1
      devtools/print_wire.c
  3. 4
      wallet/wallet.c

1
connectd/connect.c

@ -1393,7 +1393,6 @@ static void connect_failed(struct io_conn *conn, struct reaching *reach)
retry_important, imp);
}
tal_free(reach);
return;
}
static struct io_plan *conn_init(struct io_conn *conn, struct reaching *reach)

1
devtools/print_wire.c

@ -80,7 +80,6 @@ hexdump:
if (!print_hexstring(cursor, plen, len))
return;
printf(" ]\n");
return;
}
static void printwire_addresses(const u8 **cursor, size_t *plen, size_t len)

4
wallet/wallet.c

@ -1316,7 +1316,7 @@ bool wallet_htlcs_load_for_channel(struct wallet *wallet,
return false;
}
while (ok && stmt && sqlite3_step(stmt) == SQLITE_ROW) {
while (ok && sqlite3_step(stmt) == SQLITE_ROW) {
struct htlc_in *in = tal(chan, struct htlc_in);
ok &= wallet_stmt2htlc_in(chan, stmt, in);
connect_htlc_in(htlcs_in, in);
@ -1337,7 +1337,7 @@ bool wallet_htlcs_load_for_channel(struct wallet *wallet,
return false;
}
while (ok && stmt && sqlite3_step(stmt) == SQLITE_ROW) {
while (ok && sqlite3_step(stmt) == SQLITE_ROW) {
struct htlc_out *out = tal(chan, struct htlc_out);
ok &= wallet_stmt2htlc_out(chan, stmt, out);
connect_htlc_out(htlcs_out, out);

Loading…
Cancel
Save