diff --git a/bundles/org.openhab.core.model.script.runtime/src/org/openhab/core/model/script/runtime/internal/engine/ScriptEngineImpl.java b/bundles/org.openhab.core.model.script.runtime/src/org/openhab/core/model/script/runtime/internal/engine/ScriptEngineImpl.java index 380466e49ff..ef709d46189 100644 --- a/bundles/org.openhab.core.model.script.runtime/src/org/openhab/core/model/script/runtime/internal/engine/ScriptEngineImpl.java +++ b/bundles/org.openhab.core.model.script.runtime/src/org/openhab/core/model/script/runtime/internal/engine/ScriptEngineImpl.java @@ -38,7 +38,6 @@ import org.openhab.core.model.script.ScriptStandaloneSetup; import org.openhab.core.model.script.engine.Script; import org.openhab.core.model.script.engine.ScriptEngine; -import org.openhab.core.model.script.engine.ScriptExecutionException; import org.openhab.core.model.script.engine.ScriptParsingException; import org.openhab.core.model.script.runtime.ScriptRuntime; import org.osgi.service.component.annotations.Activate; @@ -118,11 +117,6 @@ public Script newScriptFromXExpression(XExpression expression) { return script; } - @Override - public Object executeScript(String scriptAsString) throws ScriptParsingException, ScriptExecutionException { - return newScriptFromString(scriptAsString).execute(); - } - private XExpression parseScriptIntoXTextEObject(String scriptAsString) throws ScriptParsingException { XtextResourceSet resourceSet = getResourceSet(); Resource resource = resourceSet.createResource(computeUnusedUri(resourceSet)); // IS-A XtextResource diff --git a/bundles/org.openhab.core.model.script/src/org/openhab/core/model/script/engine/ScriptEngine.java b/bundles/org.openhab.core.model.script/src/org/openhab/core/model/script/engine/ScriptEngine.java index f64b8198d68..f86003cad1d 100644 --- a/bundles/org.openhab.core.model.script/src/org/openhab/core/model/script/engine/ScriptEngine.java +++ b/bundles/org.openhab.core.model.script/src/org/openhab/core/model/script/engine/ScriptEngine.java @@ -31,16 +31,6 @@ public interface ScriptEngine { */ Script newScriptFromString(final String scriptAsString) throws ScriptParsingException; - /** - * Executes a script that is passed as a string - * - * @param scriptAsString - * @return the return value of the script - * @throws ScriptParsingException - * @throws ScriptExecutionException - */ - Object executeScript(final String scriptAsString) throws ScriptParsingException, ScriptExecutionException; - /** * Wraps an Xbase XExpression in a Script instance *