Browse Source

status: remove unused status_send_sync.

Signed-off-by: Rusty Russell <rusty@rustcorp.com.au>
ppa-0.6.1
Rusty Russell 7 years ago
committed by Christian Decker
parent
commit
c7b693d7ce
  1. 13
      common/status.c
  2. 2
      common/status.h

13
common/status.c

@ -66,19 +66,6 @@ static bool too_large(size_t len, int type)
return false;
}
void status_send_sync(const u8 *p)
{
const u8 *msg = p;
assert(status_fd >= 0);
if (too_large(tal_count(p), fromwire_peektype(p)))
msg = tal_dup_arr(p, u8, p, 65535, 0);
if (!wire_sync_write(status_fd, msg))
err(1, "Writing out status len %zu", tal_count(msg));
tal_free(p);
}
static void status_send_with_hdr(u16 type, const void *p, size_t len)
{
u8 *msg = tal_arr(NULL, u8, 0);

2
common/status.h

@ -18,8 +18,6 @@ void status_setup_async(struct daemon_conn *master);
/* Convenient context, frees up after every status_update/failed */
extern const void *trc;
/* Send a message (frees the message). */
void status_send_sync(const u8 *msg);
/* Send a printf-style debugging trace. */
void status_fmt(enum log_level level, const char *fmt, ...)
PRINTF_FMT(2,3);

Loading…
Cancel
Save