From 70f3361a343ad6e2f53937d1949a2f1b6e9ef227 Mon Sep 17 00:00:00 2001 From: Ginger Bill Date: Sat, 24 Sep 2016 22:55:17 +0100 Subject: Bug Fixes: some assertions; variable inits; Remove some dead code --- src/checker/expr.cpp | 16 ---------------- 1 file changed, 16 deletions(-) (limited to 'src/checker/expr.cpp') 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)); } -- cgit v1.2.3