aboutsummaryrefslogtreecommitdiff
path: root/src/environment.c
diff options
context:
space:
mode:
authorBruce Hill <bruce@bruce-hill.com>2025-09-21 15:43:59 -0400
committerBruce Hill <bruce@bruce-hill.com>2025-09-21 15:43:59 -0400
commit71f73d8b3ce63f9a3685bc1a1686ef4fab3294a6 (patch)
tree99fe1309fa4d24609867dcc62859caed909a76d9 /src/environment.c
parentf5612e38183dc20d18f207f8ab055574a4d93ad0 (diff)
Deprecate sets
Diffstat (limited to 'src/environment.c')
-rw-r--r--src/environment.c9
1 files changed, 0 insertions, 9 deletions
diff --git a/src/environment.c b/src/environment.c
index 045cf6d7..603a04d9 100644
--- a/src/environment.c
+++ b/src/environment.c
@@ -610,15 +610,6 @@ env_t *for_scope(env_t *env, ast_t *ast) {
}
return scope;
}
- case SetType: {
- if (for_->vars) {
- if (for_->vars->next) code_err(for_->vars->next->ast, "This is too many variables for this loop");
- type_t *item_type = Match(iter_t, SetType)->item_type;
- const char *name = Match(for_->vars->ast, Var)->name;
- set_binding(scope, name, item_type, Texts("_$", name));
- }
- return scope;
- }
case TableType: {
const char *vars[2] = {};
int64_t num_vars = 0;