From 91a92b607298cc3638e0978db31b310c89160672 Mon Sep 17 00:00:00 2001 From: hns Date: Mon, 20 Mar 2006 15:11:11 +0000 Subject: [PATCH] * Minor code cleanup: remove code that's been commented out since ages. --- src/helma/scripting/rhino/RhinoEngine.java | 5 ----- 1 file changed, 5 deletions(-) diff --git a/src/helma/scripting/rhino/RhinoEngine.java b/src/helma/scripting/rhino/RhinoEngine.java index 26dcdd94..45af486a 100644 --- a/src/helma/scripting/rhino/RhinoEngine.java +++ b/src/helma/scripting/rhino/RhinoEngine.java @@ -91,8 +91,6 @@ public class RhinoEngine implements ScriptingEngine { global.setPrototype(core.global); global.setParentScope(null); - // context.putThreadLocal ("reval", reval); - // context.putThreadLocal ("engine", this); extensionGlobals = new HashMap(); if (Server.getServer() != null) { @@ -114,8 +112,6 @@ public class RhinoEngine implements ScriptingEngine { } } - // context.removeThreadLocal ("reval"); - // context.removeThreadLocal ("engine"); } catch (Exception e) { System.err.println("Cannot initialize interpreter"); System.err.println("Error: " + e); @@ -176,7 +172,6 @@ public class RhinoEngine implements ScriptingEngine { context.setOptimizationLevel(optLevel); // register the per-thread scope with the dynamic scope - // core.global.registerScope(global); context.putThreadLocal("threadscope", global); context.putThreadLocal("reval", reval); context.putThreadLocal("engine", this);