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

@@ -188,12 +188,6 @@ struct routing_channel *new_routing_channel(struct routing_state *rstate,
const struct pubkey *id1,
const struct pubkey *id2);
/* Given a short_channel_id, retrieve the matching connection, or NULL if it is
* unknown. */
struct node_connection *get_connection_by_scid(const struct routing_state *rstate,
const struct short_channel_id *schanid,
const u8 direction);
/* Handlers for incoming messages */
/**