Browse Source

common: remove unused json_add_double()

Changelog-None
travis-debug
Vasil Dimov 5 years ago
committed by Rusty Russell
parent
commit
6b7db1ea7c
  1. 5
      common/json.c
  2. 3
      common/json.h

5
common/json.c

@ -547,11 +547,6 @@ void json_add_num(struct json_stream *result, const char *fieldname, unsigned in
json_add_member(result, fieldname, false, "%u", value); json_add_member(result, fieldname, false, "%u", value);
} }
void json_add_double(struct json_stream *result, const char *fieldname, double value)
{
json_add_member(result, fieldname, false, "%f", value);
}
void json_add_u64(struct json_stream *result, const char *fieldname, void json_add_u64(struct json_stream *result, const char *fieldname,
uint64_t value) uint64_t value)
{ {

3
common/json.h

@ -185,9 +185,6 @@ void json_add_escaped_string(struct json_stream *result,
void json_add_literal(struct json_stream *result, const char *fieldname, void json_add_literal(struct json_stream *result, const char *fieldname,
const char *literal, int len); const char *literal, int len);
/* '"fieldname" : value' or 'value' if fieldname is NULL */ /* '"fieldname" : value' or 'value' if fieldname is NULL */
void json_add_double(struct json_stream *result, const char *fieldname,
double value);
/* '"fieldname" : value' or 'value' if fieldname is NULL */
void json_add_num(struct json_stream *result, const char *fieldname, void json_add_num(struct json_stream *result, const char *fieldname,
unsigned int value); unsigned int value);
/* '"fieldname" : value' or 'value' if fieldname is NULL */ /* '"fieldname" : value' or 'value' if fieldname is NULL */

Loading…
Cancel
Save