mirror of
https://github.com/aljazceru/lightning.git
synced 2025-12-20 07:34:24 +01:00
Remove redundant code
This commit is contained in:
committed by
Rusty Russell
parent
a623fd8924
commit
0f7b11bdc2
@@ -1393,7 +1393,6 @@ static void connect_failed(struct io_conn *conn, struct reaching *reach)
|
|||||||
retry_important, imp);
|
retry_important, imp);
|
||||||
}
|
}
|
||||||
tal_free(reach);
|
tal_free(reach);
|
||||||
return;
|
|
||||||
}
|
}
|
||||||
|
|
||||||
static struct io_plan *conn_init(struct io_conn *conn, struct reaching *reach)
|
static struct io_plan *conn_init(struct io_conn *conn, struct reaching *reach)
|
||||||
|
|||||||
@@ -80,7 +80,6 @@ hexdump:
|
|||||||
if (!print_hexstring(cursor, plen, len))
|
if (!print_hexstring(cursor, plen, len))
|
||||||
return;
|
return;
|
||||||
printf(" ]\n");
|
printf(" ]\n");
|
||||||
return;
|
|
||||||
}
|
}
|
||||||
|
|
||||||
static void printwire_addresses(const u8 **cursor, size_t *plen, size_t len)
|
static void printwire_addresses(const u8 **cursor, size_t *plen, size_t len)
|
||||||
|
|||||||
@@ -1316,7 +1316,7 @@ bool wallet_htlcs_load_for_channel(struct wallet *wallet,
|
|||||||
return false;
|
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);
|
struct htlc_in *in = tal(chan, struct htlc_in);
|
||||||
ok &= wallet_stmt2htlc_in(chan, stmt, in);
|
ok &= wallet_stmt2htlc_in(chan, stmt, in);
|
||||||
connect_htlc_in(htlcs_in, in);
|
connect_htlc_in(htlcs_in, in);
|
||||||
@@ -1337,7 +1337,7 @@ bool wallet_htlcs_load_for_channel(struct wallet *wallet,
|
|||||||
return false;
|
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);
|
struct htlc_out *out = tal(chan, struct htlc_out);
|
||||||
ok &= wallet_stmt2htlc_out(chan, stmt, out);
|
ok &= wallet_stmt2htlc_out(chan, stmt, out);
|
||||||
connect_htlc_out(htlcs_out, out);
|
connect_htlc_out(htlcs_out, out);
|
||||||
|
|||||||
Reference in New Issue
Block a user