remove unused return value

This commit is contained in:
arowser 2018-06-29 19:07:18 +08:00 committed by Rusty Russell
parent aeafe4dbe7
commit 25f60f9456
2 changed files with 2 additions and 4 deletions

View file

@ -141,7 +141,7 @@ const char *wire_type_name(int e UNNEEDED)
/* AUTOGENERATED MOCKS END */
/* Updates existing route if required. */
static struct half_chan *add_connection(struct routing_state *rstate,
static void add_connection(struct routing_state *rstate,
const struct pubkey *from,
const struct pubkey *to,
u32 base_fee, s32 proportional_fee,
@ -161,7 +161,6 @@ static struct half_chan *add_connection(struct routing_state *rstate,
c->proportional_fee = proportional_fee;
c->delay = delay;
c->flags = get_channel_direction(from, to);
return c;
}
static struct pubkey nodeid(size_t n)

View file

@ -103,7 +103,7 @@ const char *wire_type_name(int e UNNEEDED)
/* AUTOGENERATED MOCKS END */
/* Updates existing route if required. */
static struct half_chan *add_connection(struct routing_state *rstate,
static void add_connection(struct routing_state *rstate,
const struct pubkey *from,
const struct pubkey *to,
u32 base_fee, s32 proportional_fee,
@ -128,7 +128,6 @@ static struct half_chan *add_connection(struct routing_state *rstate,
c->proportional_fee = proportional_fee;
c->delay = delay;
c->flags = get_channel_direction(from, to);
return c;
}
/* Returns chan connecting from and to: *idx set to refer