common: remove unused functions or make static.

Signed-off-by: Rusty Russell <rusty@rustcorp.com.au>
This commit is contained in:
Rusty Russell
2021-12-04 21:56:06 +10:30
parent d9968bbc0c
commit 786732601c
17 changed files with 22 additions and 192 deletions

View File

@@ -43,7 +43,13 @@ struct json_stream *json_stream_dup(const tal_t *ctx,
return js;
}
bool json_stream_still_writing(const struct json_stream *js)
/**
* json_stream_still_writing - is someone currently writing to this stream?
* @js: the json_stream.
*
* Has this json_stream not been closed yet?
*/
static bool json_stream_still_writing(const struct json_stream *js)
{
return js->writer != NULL;
}