aboutsummaryrefslogtreecommitdiff
path: root/src/json/json_generator.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/json/json_generator.c')
-rw-r--r--src/json/json_generator.c19
1 files changed, 0 insertions, 19 deletions
diff --git a/src/json/json_generator.c b/src/json/json_generator.c
index acfbcfe63..eb275712c 100644
--- a/src/json/json_generator.c
+++ b/src/json/json_generator.c
@@ -122,15 +122,6 @@ GNUNET_JSON_from_time_rel (struct GNUNET_TIME_Relative stamp)
122 json_decref (j); 122 json_decref (j);
123 return NULL; 123 return NULL;
124 } 124 }
125 if (0 !=
126 json_object_set_new (j,
127 "d_ms",
128 json_string ("forever")))
129 {
130 GNUNET_break (0);
131 json_decref (j);
132 return NULL;
133 }
134 return j; 125 return j;
135 } 126 }
136 if (stamp.rel_value_us >= (1LLU << 53)) 127 if (stamp.rel_value_us >= (1LLU << 53))
@@ -149,16 +140,6 @@ GNUNET_JSON_from_time_rel (struct GNUNET_TIME_Relative stamp)
149 json_decref (j); 140 json_decref (j);
150 return NULL; 141 return NULL;
151 } 142 }
152 if (0 !=
153 json_object_set_new (
154 j,
155 "d_ms",
156 json_integer (((json_int_t) stamp.rel_value_us)/1000LL)))
157 {
158 GNUNET_break (0);
159 json_decref (j);
160 return NULL;
161 }
162 return j; 143 return j;
163} 144}
164 145