From 7845769d4b417fdd321740c5404016dbc3119d43 Mon Sep 17 00:00:00 2001 From: gingerBill Date: Thu, 19 Aug 2021 15:03:10 +0100 Subject: Remove unused code --- src/types.cpp | 6 ------ 1 file changed, 6 deletions(-) (limited to 'src/types.cpp') diff --git a/src/types.cpp b/src/types.cpp index fd5bdbc6d..b8a20173b 100644 --- a/src/types.cpp +++ b/src/types.cpp @@ -1286,7 +1286,6 @@ i64 get_array_type_count(Type *t) { Type *core_array_type(Type *t) { for (;;) { - Type *prev = t; t = base_array_type(t); if (t->kind != Type_Array && t->kind != Type_EnumeratedArray && t->kind != Type_SimdVector) { break; @@ -1664,7 +1663,6 @@ Scope *polymorphic_record_parent_scope(Type *t) { } bool is_type_polymorphic_record_specialized(Type *t) { - Type *original_type = t; t = base_type(t); if (t->kind == Type_Struct) { return t->Struct.is_poly_specialized; @@ -3030,10 +3028,6 @@ i64 type_align_of_internal(Type *t, TypePath *path) { } case Type_SimdVector: { - // align of - i64 count = t->SimdVector.count; - Type *elem = t->SimdVector.elem; - i64 size = count * type_size_of_internal(elem, path); // IMPORTANT TODO(bill): Figure out the alignment of vector types return gb_clamp(next_pow2(type_size_of_internal(t, path)), 1, build_context.max_align); } -- cgit v1.2.3