From 0013caedfe8db885177b9b75bee44890b36567ba Mon Sep 17 00:00:00 2001 From: practicalswift Date: Wed, 21 Feb 2018 16:48:51 +0100 Subject: [PATCH] Remove unused parameter rstate in get_out_node_connection_of(struct routing_state *rstate, ...) --- gossipd/routing.c | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/gossipd/routing.c b/gossipd/routing.c index 5ba5a130e..8586ead9b 100644 --- a/gossipd/routing.c +++ b/gossipd/routing.c @@ -1164,8 +1164,7 @@ struct route_hop *get_route(tal_t *ctx, struct routing_state *rstate, /* Get the struct node_connection matching the short_channel_id, * which must be an out connection of the given node. */ static struct node_connection * -get_out_node_connection_of(struct routing_state *rstate, - const struct node *node, +get_out_node_connection_of(const struct node *node, const struct short_channel_id *short_channel_id) { int i; @@ -1243,7 +1242,7 @@ void routing_failure(struct routing_state *rstate, for (i = 0; i < tal_count(node->out); ++i) routing_failure_on_nc(rstate, failcode, node->out[i], now); } else { - nc = get_out_node_connection_of(rstate, node, scid); + nc = get_out_node_connection_of(node, scid); if (nc) routing_failure_on_nc(rstate, failcode, nc, now); else