From 1a1fafbd438f3f21a15c990d904e192b045d2391 Mon Sep 17 00:00:00 2001 From: Christian Grothoff Date: Tue, 14 Dec 2021 16:04:32 +0100 Subject: introducing GNUNET_TIME_Timestamp, recoup now with amounts --- src/json/json_pack.c | 40 ---------------------------------------- 1 file changed, 40 deletions(-) (limited to 'src/json/json_pack.c') diff --git a/src/json/json_pack.c b/src/json/json_pack.c index f41ba5234..6fea72a39 100644 --- a/src/json/json_pack.c +++ b/src/json/json_pack.c @@ -24,17 +24,6 @@ #include "taler_json_lib.h" -struct GNUNET_JSON_PackSpec -TALER_JSON_pack_time_abs (const char *name, - struct GNUNET_TIME_Absolute at) -{ - GNUNET_assert (GNUNET_OK == - GNUNET_TIME_round_abs (&at)); - return GNUNET_JSON_pack_time_abs (name, - at); -} - - struct GNUNET_JSON_PackSpec TALER_JSON_pack_time_abs_human (const char *name, struct GNUNET_TIME_Absolute at) @@ -49,15 +38,6 @@ TALER_JSON_pack_time_abs_human (const char *name, } -struct GNUNET_JSON_PackSpec -TALER_JSON_pack_time_abs_nbo (const char *name, - struct GNUNET_TIME_AbsoluteNBO at) -{ - return TALER_JSON_pack_time_abs (name, - GNUNET_TIME_absolute_ntoh (at)); -} - - struct GNUNET_JSON_PackSpec TALER_JSON_pack_time_abs_nbo_human (const char *name, struct GNUNET_TIME_AbsoluteNBO at) @@ -67,26 +47,6 @@ TALER_JSON_pack_time_abs_nbo_human (const char *name, } -struct GNUNET_JSON_PackSpec -TALER_JSON_pack_time_rel (const char *name, - struct GNUNET_TIME_Relative rt) -{ - GNUNET_assert (GNUNET_OK == - GNUNET_TIME_round_rel (&rt)); - return GNUNET_JSON_pack_time_rel (name, - rt); -} - - -struct GNUNET_JSON_PackSpec -TALER_JSON_pack_time_rel_nbo (const char *name, - struct GNUNET_TIME_RelativeNBO rt) -{ - return TALER_JSON_pack_time_rel (name, - GNUNET_TIME_relative_ntoh (rt)); -} - - struct GNUNET_JSON_PackSpec TALER_JSON_pack_denom_pub ( const char *name, -- cgit v1.2.3