From 43ff02231117bacb3cd60af0e654a0b3e8b5678b Mon Sep 17 00:00:00 2001 From: dec05eba Date: Thu, 23 Jan 2020 07:05:01 +0100 Subject: wip... there is a crash in get_or_create hash map --- src/parser.c | 13 ------------- 1 file changed, 13 deletions(-) (limited to 'src/parser.c') diff --git a/src/parser.c b/src/parser.c index 608f670..098962a 100644 --- a/src/parser.c +++ b/src/parser.c @@ -65,19 +65,6 @@ static void tsl_parser_pop_function(TslParser *self) { tsl_buffer_pop(&self->function_bytecode_list_index, sizeof(int)); } -#if 0 -static uint64_t hash_string_view(const void *data, size_t size) { - uint64_t result = 0xdec05eba; - const uint8_t *p = data; - while(size) { - result = ((result << 5) + result) + *p; - ++p; - --size; - } - return result; -} -#endif - static TslParseResult tsl_parser_parse_map(TslParser *self, int *num_items) { #define parse_map_element_separator \ return_if_error(tsl_tokenizer_accept(&self->tokenizer, TSL_TOKEN_COLON)); \ -- cgit v1.2.3