aboutsummaryrefslogtreecommitdiff
path: root/src/environment.c
diff options
context:
space:
mode:
authorBruce Hill <bruce@bruce-hill.com>2025-05-25 15:11:09 -0400
committerBruce Hill <bruce@bruce-hill.com>2025-05-25 15:11:09 -0400
commit1063d117e8d609379a50efdb9506a3a118ccca53 (patch)
tree2a178256b3b0aa44bb5996ae3cf39947d492e44a /src/environment.c
parenta43b807ef3775f2cc0440b1b07c6bc2b8c523e8a (diff)
Code cleanup
Diffstat (limited to 'src/environment.c')
-rw-r--r--src/environment.c8
1 files changed, 0 insertions, 8 deletions
diff --git a/src/environment.c b/src/environment.c
index 05ebed5a..db17da94 100644
--- a/src/environment.c
+++ b/src/environment.c
@@ -577,14 +577,6 @@ env_t *load_module_env(env_t *env, ast_t *ast)
return module_env;
}
-env_t *namespace_scope(env_t *env)
-{
- env_t *scope = new(env_t);
- *scope = *env;
- scope->locals = new(Table_t, .fallback=env->namespace_bindings ? env->namespace_bindings : env->globals);
- return scope;
-}
-
env_t *fresh_scope(env_t *env)
{
env_t *scope = new(env_t);