From 6b7db1ea7c2849d444035a0a271ac03b2fce13ce Mon Sep 17 00:00:00 2001 From: Vasil Dimov Date: Tue, 18 Feb 2020 18:07:26 +0100 Subject: [PATCH] common: remove unused json_add_double() Changelog-None --- common/json.c | 5 ----- common/json.h | 3 --- 2 files changed, 8 deletions(-) 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 */