aboutsummaryrefslogtreecommitdiff
path: root/src/checker/expr.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/checker/expr.cpp')
-rw-r--r--src/checker/expr.cpp16
1 files changed, 0 insertions, 16 deletions
diff --git a/src/checker/expr.cpp b/src/checker/expr.cpp
index f6670eb4d..429b5e6ba 100644
--- a/src/checker/expr.cpp
+++ b/src/checker/expr.cpp
@@ -806,22 +806,6 @@ void check_identifier(Checker *c, Operand *o, AstNode *n, Type *named_type, Cycl
error(n->Ident, "`_` cannot be used as a value type");
} else {
auto *entries = c->context.scope->elements.entries;
- // gb_for_array(i, entries) {
- // Entity *elem = entries[i].value;
- // if (i > 0) {
- // gb_printf(", ");
- // }
- // gb_printf("%.*s", LIT(elem->token.string));
- // }
- // for (Scope *s = c->context.scope; s != NULL; s = s->parent) {
- // Entity *elem = s->elements.entries[0].value;
- // if (elem == NULL) continue;
- // gb_printf("%.*s\n", LIT(elem->token.pos.file));
- // }
- // gb_printf("\n");
-
-
- // Entity *e = scope_lookup_entity(c->context.scope, n->Ident.string);
error(n->Ident,
"Undeclared name: %.*s", LIT(n->Ident.string));
}