From c7b693d7cea3518066f2d9c289c2493d588f39f3 Mon Sep 17 00:00:00 2001 From: Rusty Russell Date: Thu, 8 Feb 2018 11:55:12 +1030 Subject: [PATCH] status: remove unused status_send_sync. Signed-off-by: Rusty Russell --- common/status.c | 13 ------------- common/status.h | 2 -- 2 files changed, 15 deletions(-) diff --git a/common/status.c b/common/status.c index c748cce96..686031a66 100644 --- a/common/status.c +++ b/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); diff --git a/common/status.h b/common/status.h index d9e62a3b6..8ba0a4369 100644 --- a/common/status.h +++ b/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);