mirror of
https://github.com/aljazceru/lightning.git
synced 2025-12-24 01:24:26 +01:00
handle_disable_channel: don't use get_connection_by_scid.
This removes the final user, so we remove it. Signed-off-by: Rusty Russell <rusty@rustcorp.com.au>
This commit is contained in:
committed by
Christian Decker
parent
74ee448bda
commit
00194b6130
@@ -196,19 +196,6 @@ static void destroy_routing_channel(struct routing_channel *chan,
|
||||
tal_free(chan->nodes[1]);
|
||||
}
|
||||
|
||||
/* FIXME: All users of this are confused. */
|
||||
struct node_connection *get_connection_by_scid(const struct routing_state *rstate,
|
||||
const struct short_channel_id *scid,
|
||||
const u8 direction)
|
||||
{
|
||||
struct routing_channel *chan = get_channel(rstate, scid);
|
||||
|
||||
if (chan == NULL)
|
||||
return NULL;
|
||||
else
|
||||
return chan->connections[direction];
|
||||
}
|
||||
|
||||
static void destroy_node_connection(struct node_connection *nc,
|
||||
struct routing_channel *chan)
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user