ruby-changes:62373
From: Alan <ko1@a...>
Date: Thu, 23 Jul 2020 14:18:15 +0900 (JST)
Subject: [ruby-changes:62373] 1d8b689b9e (master): Remove unused field in rb_iseq_constant_body
https://git.ruby-lang.org/ruby.git/commit/?id=1d8b689b9e From 1d8b689b9efaaa4555bcbbc6538884e94ae5e19b Mon Sep 17 00:00:00 2001 From: Alan Wu <XrXr@u...> Date: Wed, 22 Jul 2020 20:46:24 -0400 Subject: Remove unused field in rb_iseq_constant_body This was introduced in 191ce5344ec42c91571f8f47c85be9138262b1c7 and has been unused since beae6cbf0fd8b6619e5212552de98022d4c4d4d4 diff --git a/iseq.c b/iseq.c index e6568a6..05a77c8 100644 --- a/iseq.c +++ b/iseq.c @@ -451,14 +451,11 @@ rb_iseq_memsize(const rb_iseq_t *iseq) https://github.com/ruby/ruby/blob/trunk/iseq.c#L451 return size; } -static uintptr_t fresh_iseq_unique_id = 0; /* -- Remove In 3.0 -- */ - struct rb_iseq_constant_body * rb_iseq_constant_body_alloc(void) { struct rb_iseq_constant_body *iseq_body; iseq_body = ZALLOC(struct rb_iseq_constant_body); - iseq_body->iseq_unique_id = fresh_iseq_unique_id++; /* -- Remove In 3.0 -- */ return iseq_body; } diff --git a/vm_core.h b/vm_core.h index 81455e1..8f4a020 100644 --- a/vm_core.h +++ b/vm_core.h @@ -427,8 +427,6 @@ struct rb_iseq_constant_body { https://github.com/ruby/ruby/blob/trunk/vm_core.h#L427 long unsigned total_calls; /* number of total calls with `mjit_exec()` */ struct rb_mjit_unit *jit_unit; #endif - - uintptr_t iseq_unique_id; /* -- Remove In 3.0 -- */ }; /* T_IMEMO/iseq */ -- cgit v0.10.2 -- ML: ruby-changes@q... Info: http://www.atdot.net/~ko1/quickml/