summaryrefslogtreecommitdiff
path: root/struct.c
diff options
context:
space:
mode:
Diffstat (limited to 'struct.c')
-rw-r--r--struct.c8
1 files changed, 0 insertions, 8 deletions
diff --git a/struct.c b/struct.c
index 2f296b34f6..d1a7d1db8c 100644
--- a/struct.c
+++ b/struct.c
@@ -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)
{