diff options
| author | gingerBill <bill@gingerbill.org> | 2021-08-19 15:03:10 +0100 |
|---|---|---|
| committer | gingerBill <bill@gingerbill.org> | 2021-08-19 15:03:10 +0100 |
| commit | 7845769d4b417fdd321740c5404016dbc3119d43 (patch) | |
| tree | 1ae0d5fb26452ac044101a161d202f7b0135f6f2 /src/types.cpp | |
| parent | 33239324b83c7a32471fe147c1539fb86ca48404 (diff) | |
Remove unused code
Diffstat (limited to 'src/types.cpp')
| -rw-r--r-- | src/types.cpp | 6 |
1 files changed, 0 insertions, 6 deletions
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); } |