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/08bdc0b6 Tree: http://git-wip-us.apache.org/repos/asf/tinkerpop/tree/08bdc0b6 Diff: http://git-wip-us.apache.org/repos/asf/tinkerpop/diff/08bdc0b6 Branch: refs/heads/TINKERPOP-1489 Commit: 08bdc0b61f2488411bdfb4ef1e542d282349be6f Parents: 81ecc51 Author: Jorge Bay Gondra <jorgebaygon...@gmail.com> Authored: Wed Oct 19 16:03:45 2016 +0200 Committer: Jorge Bay Gondra <jorgebaygon...@gmail.com> Committed: Mon Jan 8 11:28:32 2018 +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/08bdc0b6/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/08bdc0b6/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}