From 58657b33e751ec0718f539bc9fa62f0ffa02801f Mon Sep 17 00:00:00 2001 From: Alan Wu Date: Mon, 22 Feb 2021 19:23:28 -0500 Subject: [PATCH] Remove dead code --- ujit_core.c | 17 ----------------- 1 file changed, 17 deletions(-) diff --git a/ujit_core.c b/ujit_core.c index 1729011641..0e6492b4f8 100644 --- a/ujit_core.c +++ b/ujit_core.c @@ -702,23 +702,6 @@ invalidate_block_version(block_t* block) // fprintf(stderr, "invalidation done\n"); } -int blockid_cmp(st_data_t arg0, st_data_t arg1) -{ - const blockid_t *block0 = (const blockid_t*)arg0; - const blockid_t *block1 = (const blockid_t*)arg1; - return (block0->iseq != block1->iseq) || (block0->idx != block1->idx); -} - -st_index_t blockid_hash(st_data_t arg) -{ - const blockid_t *blockid = (const blockid_t*)arg; - st_index_t hash0 = st_numhash((st_data_t)blockid->iseq); - st_index_t hash1 = st_numhash((st_data_t)(uint64_t)blockid->idx); - - // Use XOR to combine the hashes - return hash0 ^ hash1; -} - void ujit_init_core(void) {