mirror of
https://github.com/aljazceru/lightning.git
synced 2025-12-19 23:24:27 +01:00
state: remove unnecessary set_errpkt() helper.
This was needed when idata->pkt wasn't a tal pointer, for testing, but now it always is anyway. Signed-off-by: Rusty Russell <rusty@rustcorp.com.au>
This commit is contained in:
@@ -482,12 +482,6 @@ static enum state_input input_by_name(const char *name)
|
||||
abort();
|
||||
}
|
||||
|
||||
/* We don't bother with lifetime issues */
|
||||
static Pkt *set_errpkt(const tal_t *ctx, const Pkt *pkt)
|
||||
{
|
||||
return (Pkt *)pkt;
|
||||
}
|
||||
|
||||
static Pkt *new_pkt(const tal_t *ctx, enum state_input i)
|
||||
{
|
||||
return (Pkt *)input_name(i);
|
||||
|
||||
Reference in New Issue
Block a user