Remove dead code

This commit is contained in:
Bruce Hill 2024-09-18 01:02:13 -04:00
parent 2158bb97fc
commit 708e7b9070
2 changed files with 0 additions and 9 deletions

View File

@ -429,14 +429,6 @@ env_t *load_module_env(env_t *env, ast_t *ast)
return module_env;
}
env_t *global_scope(env_t *env)
{
env_t *scope = new(env_t);
*scope = *env;
scope->locals = new(Table_t, .fallback=env->globals);
return scope;
}
env_t *namespace_scope(env_t *env)
{
env_t *scope = new(env_t);

View File

@ -68,7 +68,6 @@ typedef struct {
env_t *new_compilation_unit(CORD *libname);
env_t *load_module_env(env_t *env, ast_t *ast);
CORD namespace_prefix(CORD *libname, namespace_t *ns);
env_t *global_scope(env_t *env);
env_t *namespace_scope(env_t *env);
env_t *fresh_scope(env_t *env);
env_t *for_scope(env_t *env, ast_t *ast);