mirror of
https://github.com/ElementsProject/lightning.git
synced 2025-02-22 06:41:44 +01:00
status: remove unused status_send_sync.
Signed-off-by: Rusty Russell <rusty@rustcorp.com.au>
This commit is contained in:
parent
780b620cb1
commit
c7b693d7ce
2 changed files with 0 additions and 15 deletions
|
@ -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);
|
||||
|
|
|
@ -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…
Add table
Reference in a new issue