[前][次][番号順一覧][スレッド一覧]

ruby-changes:68794

From: Alan <ko1@a...>
Date: Thu, 21 Oct 2021 08:13:35 +0900 (JST)
Subject: [ruby-changes:68794] 58657b33e7 (master): Remove dead code

https://git.ruby-lang.org/ruby.git/commit/?id=58657b33e7

From 58657b33e751ec0718f539bc9fa62f0ffa02801f Mon Sep 17 00:00:00 2001
From: Alan Wu <XrXr@u...>
Date: Mon, 22 Feb 2021 19:23:28 -0500
Subject: 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) https://github.com/ruby/ruby/blob/trunk/ujit_core.c#L702
     // 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)
 {
-- 
cgit v1.2.1


--
ML: ruby-changes@q...
Info: http://www.atdot.net/~ko1/quickml/

[前][次][番号順一覧][スレッド一覧]