From 1f79082921b5f1e530b013b7b63a5f50f2bc7e7d Mon Sep 17 00:00:00 2001 From: gingerBill Date: Wed, 4 Aug 2021 00:10:05 +0100 Subject: Remove dead comments --- src/check_expr.cpp | 7 +------ 1 file changed, 1 insertion(+), 6 deletions(-) (limited to 'src/check_expr.cpp') diff --git a/src/check_expr.cpp b/src/check_expr.cpp index 09bd5f8ed..b2cd18430 100644 --- a/src/check_expr.cpp +++ b/src/check_expr.cpp @@ -869,7 +869,7 @@ bool is_polymorphic_type_assignable(CheckerContext *c, Type *poly, Type *source, } } if (modify_type) { - Type *ds = default_type(source); // IMPORTANT TODO(bill): IS THIS CORRECT? + Type *ds = default_type(source); gb_memmove(poly, ds, gb_size_of(Type)); } return true; @@ -885,9 +885,6 @@ bool is_polymorphic_type_assignable(CheckerContext *c, Type *poly, Type *source, return false; case Type_Array: if (source->kind == Type_Array) { - - // IMPORTANT TODO(bill): Which is correct? - // if (poly->Array.generic_count != nullptr && modify_type) { if (poly->Array.generic_count != nullptr) { Type *gt = poly->Array.generic_count; GB_ASSERT(gt->kind == Type_Generic); @@ -918,8 +915,6 @@ bool is_polymorphic_type_assignable(CheckerContext *c, Type *poly, Type *source, return is_polymorphic_type_assignable(c, poly->Array.elem, source->Array.elem, true, modify_type); } } else if (source->kind == Type_EnumeratedArray) { - // IMPORTANT TODO(bill): Which is correct? - // if (poly->Array.generic_count != nullptr && modify_type) { if (poly->Array.generic_count != nullptr) { Type *gt = poly->Array.generic_count; GB_ASSERT(gt->kind == Type_Generic); -- cgit v1.2.3