aboutsummaryrefslogtreecommitdiff
path: root/src/checker.cpp
diff options
context:
space:
mode:
authorgingerBill <bill@gingerbill.org>2023-07-07 22:56:20 +0100
committergingerBill <bill@gingerbill.org>2023-07-07 22:56:20 +0100
commit3758be55f562cadae17845bfdda1df0431b2a5df (patch)
tree7b2efb54ef091d698e92dc2d8c9ed76c839db7f7 /src/checker.cpp
parent8f4c59b0801cc5ffa9ea10f72c29a94245f0bbb1 (diff)
Fix #2630
Diffstat (limited to 'src/checker.cpp')
-rw-r--r--src/checker.cpp11
1 files changed, 0 insertions, 11 deletions
diff --git a/src/checker.cpp b/src/checker.cpp
index 354cdadd3..396a04d7a 100644
--- a/src/checker.cpp
+++ b/src/checker.cpp
@@ -285,17 +285,6 @@ gb_internal Scope *create_scope_from_package(CheckerContext *c, AstPackage *pkg)
}
gb_internal void destroy_scope(Scope *scope) {
- for (auto const &entry : scope->elements) {
- Entity *e = entry.value;
- if (e->kind == Entity_Variable) {
- if (!(e->flags & EntityFlag_Used)) {
-#if 0
- warning(e->token, "Unused variable '%.*s'", LIT(e->token.string));
-#endif
- }
- }
- }
-
for (Scope *child = scope->head_child; child != nullptr; child = child->next) {
destroy_scope(child);
}