From c5af2a931300328aa086f1b784d90a13389d254c Mon Sep 17 00:00:00 2001 From: GrayJack Date: Tue, 16 Apr 2024 16:24:39 -0300 Subject: [PATCH] fix: remove dead code --- src/core/value.c | 10 ---------- 1 file changed, 10 deletions(-) diff --git a/src/core/value.c b/src/core/value.c index cbf2bae1..1f312225 100644 --- a/src/core/value.c +++ b/src/core/value.c @@ -439,16 +439,6 @@ int janet_compare(Janet x, Janet y) { return status - 2; } -static int32_t getter_checkint(JanetType type, Janet key, int32_t max) { - if (!janet_checkint(key)) goto bad; - int32_t ret = janet_unwrap_integer(key); - if (ret < 0) goto bad; - if (ret >= max) goto bad; - return ret; -bad: - janet_panicf("expected integer key for %s in range [0, %d), got %v", janet_type_names[type], max, key); -} - static size_t getter_checksize(JanetType type, Janet key, size_t max) { if (!janet_checksize(key)) goto bad; size_t ret = janet_unwrap_size(key);