From a724ddbe1c8c53acd8b2836e437237cf17c57043 Mon Sep 17 00:00:00 2001 From: dec05eba Date: Wed, 22 Jan 2020 03:03:37 +0100 Subject: Use macro return_if_error instead of if-statement everywhere --- src/std/hash_map.c | 5 ----- 1 file changed, 5 deletions(-) (limited to 'src/std') diff --git a/src/std/hash_map.c b/src/std/hash_map.c index 44d36db..968a5ea 100644 --- a/src/std/hash_map.c +++ b/src/std/hash_map.c @@ -10,11 +10,6 @@ struct TslHashMapNode { TslHashMapNode *next; }; -static void hash_map_node_init(TslHashMapNode *self) { - self->data = NULL; - self->next = NULL; -} - static void hash_map_node_get(TslHashMapNode *self, uint64_t *hash, TslStringView *key, size_t *size, uint8_t **data) { memcpy(hash, (uint8_t*)self->data, sizeof(uint64_t)); memcpy(&key->size, (uint8_t*)self->data + sizeof(uint64_t), sizeof(key->size)); -- cgit v1.2.3