Remove dead code
This commit is contained in:
parent
708e7b9070
commit
7baf36e2ae
11
types.c
11
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"
|
||||
|
1
types.h
1
types.h
@ -148,7 +148,6 @@ PUREFUNC bool can_promote(type_t *actual, type_t *needed);
|
||||
PUREFUNC const char *enum_single_value_tag(type_t *enum_type, type_t *t);
|
||||
PUREFUNC bool is_int_type(type_t *t);
|
||||
PUREFUNC bool is_numeric_type(type_t *t);
|
||||
PUREFUNC bool supports_optionals(type_t *t);
|
||||
PUREFUNC size_t type_size(type_t *t);
|
||||
PUREFUNC size_t type_align(type_t *t);
|
||||
PUREFUNC size_t padded_type_size(type_t *t);
|
||||
|
Loading…
Reference in New Issue
Block a user