mirror of
https://github.com/aljazceru/lightning.git
synced 2025-12-24 01:24:26 +01:00
remove unused return value
This commit is contained in:
@@ -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)
|
||||
|
||||
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user