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:
Rusty Russell
2018-03-02 19:29:17 +10:30
committed by Christian Decker
parent 74ee448bda
commit 00194b6130
3 changed files with 4 additions and 22 deletions

View File

@@ -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)
{