mirror of
https://github.com/Ed94/Odin.git
synced 2026-08-06 15:48:51 +00:00
Remove debug code
This commit is contained in:
@@ -3419,7 +3419,6 @@ void convert_untyped_error(CheckerContext *c, Operand *operand, Type *target_typ
|
|||||||
if (operand->value.kind == ExactValue_String) {
|
if (operand->value.kind == ExactValue_String) {
|
||||||
String key = operand->value.value_string;
|
String key = operand->value.value_string;
|
||||||
if (is_type_string(operand->type) && is_type_enum(target_type)) {
|
if (is_type_string(operand->type) && is_type_enum(target_type)) {
|
||||||
gb_printf_err("HERE!\n");
|
|
||||||
Type *et = base_type(target_type);
|
Type *et = base_type(target_type);
|
||||||
check_did_you_mean_type(key, et->Enum.fields, ".");
|
check_did_you_mean_type(key, et->Enum.fields, ".");
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -1618,9 +1618,6 @@ void add_type_info_type_internal(CheckerContext *c, Type *t) {
|
|||||||
// NOTE(bill): map entries grow linearly and in order
|
// NOTE(bill): map entries grow linearly and in order
|
||||||
ti_index = c->info->type_info_types.count;
|
ti_index = c->info->type_info_types.count;
|
||||||
array_add(&c->info->type_info_types, t);
|
array_add(&c->info->type_info_types, t);
|
||||||
if (t->kind == Type_Named && t->Named.name == "A") {
|
|
||||||
gb_printf_err("HERE!\n");
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
map_set(&c->checker->info.type_info_map, t, ti_index);
|
map_set(&c->checker->info.type_info_map, t, ti_index);
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user