diff --git a/common/json.c b/common/json.c index e13bea6a3..4be49f04b 100644 --- a/common/json.c +++ b/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); } -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, uint64_t value) { diff --git a/common/json.h b/common/json.h index 27f1f34ef..551d1b198 100644 --- a/common/json.h +++ b/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, const char *literal, int len); /* '"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, unsigned int value); /* '"fieldname" : value' or 'value' if fieldname is NULL */