Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down Expand Up @@ -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
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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
*
Expand Down