From ad05952685510e3ecc246491ab1420b7fec7e7c2 Mon Sep 17 00:00:00 2001 From: NeeEoo Date: Thu, 25 Apr 2024 01:05:33 +0200 Subject: [PATCH] Small optimization --- hscript/Interp.hx | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/hscript/Interp.hx b/hscript/Interp.hx index 67e5c4e..406347d 100644 --- a/hscript/Interp.hx +++ b/hscript/Interp.hx @@ -499,7 +499,6 @@ class Interp { if (l != null) return l.r; - var v = variables.get(id); for(map in [variables, publicVariables, staticVariables, customClasses]) if (map.exists(id)) return map[id]; @@ -520,7 +519,8 @@ class Interp { } if (doException) error(EUnknownVariable(id)); - return v; + //var v = variables.get(id); + return null; } public function expr(e:Expr):Dynamic {