diff options
Diffstat (limited to 'src/datacache/datacache.c')
-rw-r--r-- | src/datacache/datacache.c | 4 |
1 files changed, 0 insertions, 4 deletions
diff --git a/src/datacache/datacache.c b/src/datacache/datacache.c index 6e9b07708..9c1a90bca 100644 --- a/src/datacache/datacache.c +++ b/src/datacache/datacache.c | |||
@@ -191,7 +191,6 @@ GNUNET_DATACACHE_create (struct GNUNET_SCHEDULER_Handle *sched, | |||
191 | GNUNET_DATACACHE_destroy (ret); | 191 | GNUNET_DATACACHE_destroy (ret); |
192 | return NULL; | 192 | return NULL; |
193 | } | 193 | } |
194 | GNUNET_assert (ret->api->get != NULL); | ||
195 | return ret; | 194 | return ret; |
196 | } | 195 | } |
197 | 196 | ||
@@ -245,7 +244,6 @@ GNUNET_DATACACHE_put (struct GNUNET_DATACACHE_Handle *h, | |||
245 | { | 244 | { |
246 | uint32_t used; | 245 | uint32_t used; |
247 | 246 | ||
248 | GNUNET_assert (h->api->get != NULL); | ||
249 | used = h->api->put (h->api->cls, | 247 | used = h->api->put (h->api->cls, |
250 | key, | 248 | key, |
251 | size, | 249 | size, |
@@ -287,7 +285,6 @@ GNUNET_DATACACHE_get (struct GNUNET_DATACACHE_Handle *h, | |||
287 | GNUNET_DATACACHE_Iterator iter, | 285 | GNUNET_DATACACHE_Iterator iter, |
288 | void *iter_cls) | 286 | void *iter_cls) |
289 | { | 287 | { |
290 | GNUNET_assert (h->api->get != NULL); | ||
291 | GNUNET_STATISTICS_update (h->stats, | 288 | GNUNET_STATISTICS_update (h->stats, |
292 | gettext_noop ("# requests received"), | 289 | gettext_noop ("# requests received"), |
293 | 1, | 290 | 1, |
@@ -301,7 +298,6 @@ GNUNET_DATACACHE_get (struct GNUNET_DATACACHE_Handle *h, | |||
301 | GNUNET_NO); | 298 | GNUNET_NO); |
302 | return 0; /* can not be present */ | 299 | return 0; /* can not be present */ |
303 | } | 300 | } |
304 | GNUNET_assert (h->api->get != NULL); | ||
305 | return h->api->get (h->api->cls, | 301 | return h->api->get (h->api->cls, |
306 | key, | 302 | key, |
307 | type, | 303 | type, |