From 7baf36e2ae9a1c3da919336102a591ab25ed4cfe Mon Sep 17 00:00:00 2001 From: Bruce Hill Date: Wed, 18 Sep 2024 01:06:26 -0400 Subject: Remove dead code --- types.c | 11 ----------- 1 file changed, 11 deletions(-) (limited to 'types.c') diff --git a/types.c b/types.c index b1269bbb..c1862e07 100644 --- a/types.c +++ b/types.c @@ -396,17 +396,6 @@ PUREFUNC bool is_numeric_type(type_t *t) return t->tag == IntType || t->tag == BigIntType || t->tag == NumType; } -PUREFUNC bool supports_optionals(type_t *t) -{ - switch (t->tag) { - case BoolType: case ByteType: case CStringType: case BigIntType: case NumType: case TextType: - case ArrayType: case SetType: case TableType: case FunctionType: case ClosureType: - case PointerType: case IntType: - return true; - default: return false; - } -} - PUREFUNC size_t type_size(type_t *t) { #pragma GCC diagnostic ignored "-Wswitch-default" -- cgit v1.2.3