ignite-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From ivasilin...@apache.org
Subject [43/50] [abbrv] incubator-ignite git commit: #ignite-964: remove unused method.
Date Fri, 10 Jul 2015 08:58:05 GMT
#ignite-964: remove unused method.


Project: http://git-wip-us.apache.org/repos/asf/incubator-ignite/repo
Commit: http://git-wip-us.apache.org/repos/asf/incubator-ignite/commit/acb56269
Tree: http://git-wip-us.apache.org/repos/asf/incubator-ignite/tree/acb56269
Diff: http://git-wip-us.apache.org/repos/asf/incubator-ignite/diff/acb56269

Branch: refs/heads/ignite-964
Commit: acb56269c98a04ab11d684e775988a68cd03f776
Parents: ba4c59a
Author: ivasilinets <ivasilinets@gridgain.com>
Authored: Thu Jul 9 18:46:28 2015 +0300
Committer: ivasilinets <ivasilinets@gridgain.com>
Committed: Thu Jul 9 18:46:28 2015 +0300

----------------------------------------------------------------------
 .../scripting/IgniteScriptProcessor.java        | 27 --------------------
 1 file changed, 27 deletions(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/incubator-ignite/blob/acb56269/modules/core/src/main/java/org/apache/ignite/internal/processors/scripting/IgniteScriptProcessor.java
----------------------------------------------------------------------
diff --git a/modules/core/src/main/java/org/apache/ignite/internal/processors/scripting/IgniteScriptProcessor.java
b/modules/core/src/main/java/org/apache/ignite/internal/processors/scripting/IgniteScriptProcessor.java
index 34d35d8..1f6dfbc 100644
--- a/modules/core/src/main/java/org/apache/ignite/internal/processors/scripting/IgniteScriptProcessor.java
+++ b/modules/core/src/main/java/org/apache/ignite/internal/processors/scripting/IgniteScriptProcessor.java
@@ -144,31 +144,4 @@ public class IgniteScriptProcessor extends GridProcessorAdapter {
                     ", err= " + e.getMessage() + "].");
         }
     }
-
-    /**
-     * @param src Script src.
-     * @param arg Argument.
-     * @return Result of the function.
-     * @throws IgniteCheckedException If script failed.
-     */
-    public Object invokeJSFunction(String src, Object arg, Object arg2) throws IgniteCheckedException
{
-        try {
-            Invocable invocable = (Invocable) jsEngine;
-            if (arg != null && arg2 != null)
-                return invocable.invokeFunction("__internalJSCall", src, arg.toString(),
arg2.toString());
-            if (arg != null && arg2 == null)
-                return invocable.invokeFunction("__internalJSCall", src, arg.toString(),
arg2);
-
-            return invocable.invokeFunction("__internalJSCall", src, arg, arg2);
-
-        }
-        catch (ScriptException e) {
-            throw new IgniteCheckedException("Function evaluation failed [funcName=" + src
+
-                ", err= " + e.getMessage() + "].");
-        }
-        catch (NoSuchMethodException e) {
-            throw new IgniteCheckedException("Cannot find function [func=__internalCall"
+
-                ", err= " + e.getMessage() + "].");
-        }
-    }
 }


Mime
View raw message