aboutsummaryrefslogtreecommitdiffstats
path: root/array.c
diff options
context:
space:
mode:
authorPeter Zhu <peter@peterzhu.ca>2023-12-23 09:51:30 -0500
committerPeter Zhu <peter@peterzhu.ca>2023-12-23 09:51:30 -0500
commit47f33c38481d79563271f042946d0f3165d8b638 (patch)
treebddc6592e2dc8811399ffb1a01c1acb59614c176 /array.c
parentfe9e57bac8ec73ad822c1b245376a6cd96139ccb (diff)
downloadruby-47f33c38481d79563271f042946d0f3165d8b638.tar.gz
Remove useless `#if 1` in array.c
Diffstat (limited to 'array.c')
-rw-r--r--array.c2
1 files changed, 0 insertions, 2 deletions
diff --git a/array.c b/array.c
index 0f274cb093..d029d44b39 100644
--- a/array.c
+++ b/array.c
@@ -249,7 +249,6 @@ ary_verify_(VALUE ary, const char *file, int line)
assert(RARRAY_LEN(ary) <= ary_embed_capa(ary));
}
else {
-#if 1
const VALUE *ptr = RARRAY_CONST_PTR(ary);
long i, len = RARRAY_LEN(ary);
volatile VALUE v;
@@ -258,7 +257,6 @@ ary_verify_(VALUE ary, const char *file, int line)
v = ptr[i]; /* access check */
}
v = v;
-#endif
}
return ary;