Filter out __() static method

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

Branch: refs/heads/TINKERPOP-1489
Commit: d552fc7b96a1609da9951451a64e940215bd669c
Parents: 2bb9a69
Author: Jorge Bay Gondra <jorgebaygon...@gmail.com>
Authored: Wed Oct 19 16:03:45 2016 +0200
Committer: Jorge Bay Gondra <jorgebaygon...@gmail.com>
Committed: Wed Nov 22 15:07:35 2017 +0100

----------------------------------------------------------------------
 .../javascript/GraphTraversalSourceGenerator.groovy       |  1 +
 .../gremlin-javascript/process/graph-traversal.js         | 10 ----------
 2 files changed, 1 insertion(+), 10 deletions(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/tinkerpop/blob/d552fc7b/gremlin-javascript/src/main/groovy/org/apache/tinkerpop/gremlin/javascript/GraphTraversalSourceGenerator.groovy
----------------------------------------------------------------------
diff --git 
a/gremlin-javascript/src/main/groovy/org/apache/tinkerpop/gremlin/javascript/GraphTraversalSourceGenerator.groovy
 
b/gremlin-javascript/src/main/groovy/org/apache/tinkerpop/gremlin/javascript/GraphTraversalSourceGenerator.groovy
index a8217e2..0ae6079 100644
--- 
a/gremlin-javascript/src/main/groovy/org/apache/tinkerpop/gremlin/javascript/GraphTraversalSourceGenerator.groovy
+++ 
b/gremlin-javascript/src/main/groovy/org/apache/tinkerpop/gremlin/javascript/GraphTraversalSourceGenerator.groovy
@@ -195,6 +195,7 @@ class GraphTraversalSourceGenerator {
         __.class.getMethods().
                 findAll { GraphTraversal.class.equals(it.returnType) }.
                 findAll { Modifier.isStatic(it.getModifiers()) }.
+                findAll { !it.name.equals("__") }.
                 collect { SymbolHelper.toJs(it.name) }.
                 unique().
                 sort { a, b -> a <=> b }.

http://git-wip-us.apache.org/repos/asf/tinkerpop/blob/d552fc7b/gremlin-javascript/src/main/javascript/gremlin-javascript/process/graph-traversal.js
----------------------------------------------------------------------
diff --git 
a/gremlin-javascript/src/main/javascript/gremlin-javascript/process/graph-traversal.js
 
b/gremlin-javascript/src/main/javascript/gremlin-javascript/process/graph-traversal.js
index 663a24d..7f36e59 100644
--- 
a/gremlin-javascript/src/main/javascript/gremlin-javascript/process/graph-traversal.js
+++ 
b/gremlin-javascript/src/main/javascript/gremlin-javascript/process/graph-traversal.js
@@ -1080,16 +1080,6 @@
   };
 
   /**
-   * __() static method
-   * @param {...Object} args
-   * @returns {GraphTraversal}
-   */
-  statics.__ = function (args) {
-    var g = new GraphTraversal(null, null, new Bytecode());
-    return g.__.apply(g, arguments);
-  };
-
-  /**
    * addE() static method
    * @param {...Object} args
    * @returns {GraphTraversal}

Reply via email to