From 41bacd9b0d0a2cec497b0b81c0d5916c5e98e96f Mon Sep 17 00:00:00 2001 From: Jemma Issroff Date: Fri, 2 Dec 2022 13:41:06 -0500 Subject: [PATCH] Remove unused rb_shape_flag_shift and rb_shape_flag_mask --- shape.c | 12 ------------ shape.h | 2 -- yjit/bindgen/src/main.rs | 2 -- yjit/src/cruby_bindings.inc.rs | 6 ------ 4 files changed, 22 deletions(-) diff --git a/shape.c b/shape.c index 7dba1015a0..2a8318398f 100644 --- a/shape.c +++ b/shape.c @@ -312,18 +312,6 @@ rb_shape_id_offset(void) return 8 - rb_shape_id_num_bits() / 8; } -uint8_t -rb_shape_flag_shift(void) -{ - return SHAPE_FLAG_SHIFT; -} - -uint64_t -rb_shape_flag_mask(void) -{ - return SHAPE_FLAG_MASK; -} - rb_shape_t * rb_shape_rebuild_shape(rb_shape_t * initial_shape, rb_shape_t * dest_shape) { diff --git a/shape.h b/shape.h index ad8b4ec23d..8ed51c6211 100644 --- a/shape.h +++ b/shape.h @@ -125,8 +125,6 @@ bool rb_shape_root_shape_p(rb_shape_t* shape); rb_shape_t * rb_shape_get_root_shape(void); uint8_t rb_shape_id_num_bits(void); int32_t rb_shape_id_offset(void); -uint64_t rb_shape_flag_mask(void); -uint8_t rb_shape_flag_shift(void); rb_shape_t* rb_shape_get_shape_by_id_without_assertion(shape_id_t shape_id); rb_shape_t * rb_shape_get_parent(rb_shape_t * shape); diff --git a/yjit/bindgen/src/main.rs b/yjit/bindgen/src/main.rs index 5244c84da2..e0d9de000a 100644 --- a/yjit/bindgen/src/main.rs +++ b/yjit/bindgen/src/main.rs @@ -90,8 +90,6 @@ fn main() { .allowlist_function("rb_shape_get_iv_index") .allowlist_function("rb_shape_get_next") .allowlist_function("rb_shape_id") - .allowlist_function("rb_shape_flag_mask") - .allowlist_function("rb_shape_flag_shift") .allowlist_function("rb_shape_transition_shape_capa") // From ruby/internal/intern/object.h diff --git a/yjit/src/cruby_bindings.inc.rs b/yjit/src/cruby_bindings.inc.rs index 9d9074e123..28a1952878 100644 --- a/yjit/src/cruby_bindings.inc.rs +++ b/yjit/src/cruby_bindings.inc.rs @@ -449,12 +449,6 @@ extern "C" { extern "C" { pub fn rb_shape_id_offset() -> i32; } -extern "C" { - pub fn rb_shape_flag_mask() -> u64; -} -extern "C" { - pub fn rb_shape_flag_shift() -> u8; -} extern "C" { pub fn rb_shape_get_shape_by_id(shape_id: shape_id_t) -> *mut rb_shape_t; }