mirror of
https://github.com/aljazceru/lightning.git
synced 2025-12-19 15:14:23 +01:00
status: remove unused status_send_sync.
Signed-off-by: Rusty Russell <rusty@rustcorp.com.au>
This commit is contained in:
committed by
Christian Decker
parent
780b620cb1
commit
c7b693d7ce
@@ -66,19 +66,6 @@ static bool too_large(size_t len, int type)
|
|||||||
return false;
|
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)
|
static void status_send_with_hdr(u16 type, const void *p, size_t len)
|
||||||
{
|
{
|
||||||
u8 *msg = tal_arr(NULL, u8, 0);
|
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 */
|
/* Convenient context, frees up after every status_update/failed */
|
||||||
extern const void *trc;
|
extern const void *trc;
|
||||||
|
|
||||||
/* Send a message (frees the message). */
|
|
||||||
void status_send_sync(const u8 *msg);
|
|
||||||
/* Send a printf-style debugging trace. */
|
/* Send a printf-style debugging trace. */
|
||||||
void status_fmt(enum log_level level, const char *fmt, ...)
|
void status_fmt(enum log_level level, const char *fmt, ...)
|
||||||
PRINTF_FMT(2,3);
|
PRINTF_FMT(2,3);
|
||||||
|
|||||||
Reference in New Issue
Block a user