diff options
author | Nobuyoshi Nakada <nobu@ruby-lang.org> | 2021-11-20 21:32:57 +0900 |
---|---|---|
committer | Nobuyoshi Nakada <nobu@ruby-lang.org> | 2021-11-20 21:32:57 +0900 |
commit | c5ec05d047f3c3f32b34d705088d407429d4303a (patch) | |
tree | 8b44f748104b057652893611677ae7703c2e09af /struct.c | |
parent | 73388aff5e2a6c6f5520d4ccc7843990fb15520e (diff) |
`struct_pos_num` is no longer used
Diffstat (limited to 'struct.c')
-rw-r--r-- | struct.c | 8 |
1 files changed, 0 insertions, 8 deletions
@@ -263,14 +263,6 @@ new_struct(VALUE name, VALUE super) NORETURN(static void invalid_struct_pos(VALUE s, VALUE idx)); -static inline long -struct_pos_num(VALUE s, VALUE idx) -{ - long i = NUM2INT(idx); - if (i < 0 || i >= RSTRUCT_LEN(s)) invalid_struct_pos(s, idx); - return i; -} - static void define_aref_method(VALUE nstr, VALUE name, VALUE off) { |