aboutsummaryrefslogtreecommitdiff
path: root/src/check_expr.cpp
diff options
context:
space:
mode:
authorLeandroLibanio28H <leandro.libanio@libaniol.com>2025-06-02 20:48:25 -0300
committerLeandroLibanio28H <leandro.libanio@libaniol.com>2025-06-02 20:48:25 -0300
commite6b086e78d2b8619fccd86108b4725d3d2de4a59 (patch)
treedc664a7eceee63e0f3d56fe3c5c3700a4b320939 /src/check_expr.cpp
parent7b612a3a1587edcafc6301785a3f126fee692eb9 (diff)
Removing unreacheable block (since e86fde3)
Diffstat (limited to 'src/check_expr.cpp')
-rw-r--r--src/check_expr.cpp31
1 files changed, 0 insertions, 31 deletions
diff --git a/src/check_expr.cpp b/src/check_expr.cpp
index 12655460b..a60eaaf3d 100644
--- a/src/check_expr.cpp
+++ b/src/check_expr.cpp
@@ -5394,37 +5394,6 @@ gb_internal Entity *check_selector(CheckerContext *c, Operand *operand, Ast *nod
return entity;
}
GB_ASSERT_MSG(entity->type != nullptr, "%.*s (%.*s)", LIT(entity->token.string), LIT(entity_strings[entity->kind]));
-
- if (entity->kind == Entity_ProcGroup) {
- Array<Entity *> procs = entity->ProcGroup.entities;
- bool skip = false;
- for (Entity *p : procs) {
- Type *t = base_type(p->type);
- if (t == t_invalid) {
- continue;
- }
-
- Operand x = {};
- x.mode = Addressing_Value;
- x.type = t;
- if (type_hint != nullptr) {
- if (check_is_assignable_to(c, &x, type_hint)) {
- entity = p;
- skip = true;
- break;
- }
- }
- }
-
- if (!skip) {
- GB_ASSERT(entity != nullptr);
- operand->mode = Addressing_ProcGroup;
- operand->type = t_invalid;
- operand->expr = node;
- operand->proc_group = entity;
- return entity;
- }
- }
}
}