From a3cd9495efa453452b1cfe6ce6a70ccecb26b954 Mon Sep 17 00:00:00 2001 From: practicalswift Date: Wed, 21 Feb 2018 16:47:52 +0100 Subject: [PATCH] Remove unused parameter rstate in delete_connection(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 adc12b408..5ba5a130e 100644 --- a/gossipd/routing.c +++ b/gossipd/routing.c @@ -269,8 +269,7 @@ get_or_make_connection(struct routing_state *rstate, return nc; } -static void delete_connection(struct routing_state *rstate, - const struct node_connection *connection) +static void delete_connection(const struct node_connection *connection) { tal_free(connection); } @@ -1197,7 +1196,7 @@ static void routing_failure_on_nc(struct routing_state *rstate, /* Prevent it for 20 seconds. */ nc->unroutable_until = now + 20; else - delete_connection(rstate, nc); + delete_connection(nc); } void routing_failure(struct routing_state *rstate,