aboutsummaryrefslogtreecommitdiff
path: root/src/std
diff options
context:
space:
mode:
authordec05eba <dec05eba@protonmail.com>2020-01-22 03:03:37 +0100
committerdec05eba <dec05eba@protonmail.com>2020-01-22 03:03:37 +0100
commita724ddbe1c8c53acd8b2836e437237cf17c57043 (patch)
tree212de4293dbb01400d0251f1478484e8eee60f70 /src/std
parent88244bd3070399ba62d79bae6dfdf8b09ff8406d (diff)
Use macro return_if_error instead of if-statement everywhere
Diffstat (limited to 'src/std')
-rw-r--r--src/std/hash_map.c5
1 files changed, 0 insertions, 5 deletions
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));