aboutsummaryrefslogtreecommitdiff
path: root/repl.c
diff options
context:
space:
mode:
Diffstat (limited to 'repl.c')
-rw-r--r--repl.c6
1 files changed, 0 insertions, 6 deletions
diff --git a/repl.c b/repl.c
index 29ed407f..3b2e1af3 100644
--- a/repl.c
+++ b/repl.c
@@ -36,12 +36,6 @@ typedef struct {
static PUREFUNC repl_binding_t *get_repl_binding(env_t *env, const char *name)
{
repl_binding_t *b = Table$str_get(*env->locals, name);
- if (b) return b;
- for (fn_ctx_t *fn_ctx = env->fn_ctx; fn_ctx; fn_ctx = fn_ctx->parent) {
- if (!fn_ctx->closure_scope) continue;
- b = Table$str_get(*fn_ctx->closure_scope, name);
- if (b) return b;
- }
return b;
}