diff options
| author | Bruce Hill <bruce@bruce-hill.com> | 2025-05-25 15:11:09 -0400 |
|---|---|---|
| committer | Bruce Hill <bruce@bruce-hill.com> | 2025-05-25 15:11:09 -0400 |
| commit | 1063d117e8d609379a50efdb9506a3a118ccca53 (patch) | |
| tree | 2a178256b3b0aa44bb5996ae3cf39947d492e44a /src/environment.c | |
| parent | a43b807ef3775f2cc0440b1b07c6bc2b8c523e8a (diff) | |
Code cleanup
Diffstat (limited to 'src/environment.c')
| -rw-r--r-- | src/environment.c | 8 |
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); |
