jena-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From a...@apache.org
Subject jena git commit: Remove forwardMode argument to ALP_1 (argument not used).
Date Sat, 29 Oct 2016 13:07:14 GMT
Repository: jena
Updated Branches:
  refs/heads/master 0cc1d1a01 -> b732fdf69


Remove forwardMode argument to ALP_1 (argument not used).

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

Branch: refs/heads/master
Commit: b732fdf6973b1c2663801548461c5cd111888245
Parents: 0cc1d1a
Author: Andy Seaborne <andy@apache.org>
Authored: Sat Oct 29 10:11:14 2016 +0100
Committer: Andy Seaborne <andy@apache.org>
Committed: Sat Oct 29 10:11:14 2016 +0100

----------------------------------------------------------------------
 .../org/apache/jena/sparql/path/eval/PathEngineSPARQL.java   | 8 ++++----
 .../main/java/org/apache/jena/sparql/path/eval/PathEval.java | 2 --
 2 files changed, 4 insertions(+), 6 deletions(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/jena/blob/b732fdf6/jena-arq/src/main/java/org/apache/jena/sparql/path/eval/PathEngineSPARQL.java
----------------------------------------------------------------------
diff --git a/jena-arq/src/main/java/org/apache/jena/sparql/path/eval/PathEngineSPARQL.java
b/jena-arq/src/main/java/org/apache/jena/sparql/path/eval/PathEngineSPARQL.java
index bdb887d..aad333f 100644
--- a/jena-arq/src/main/java/org/apache/jena/sparql/path/eval/PathEngineSPARQL.java
+++ b/jena-arq/src/main/java/org/apache/jena/sparql/path/eval/PathEngineSPARQL.java
@@ -93,7 +93,7 @@ public class PathEngineSPARQL extends PathEngine
     @Override
     protected void doZeroOrMore(Path pathStep, Node node, Collection<Node> output)
{
         Set<Node> visited = visitedAcc() ;
-        ALP_1(forwardMode, 0, -1, node, pathStep, visited) ;
+        ALP_1(0, -1, node, pathStep, visited) ;
         output.addAll(visited) ;
     }
 
@@ -104,7 +104,7 @@ public class PathEngineSPARQL extends PathEngine
         Iter<Node> iter1 = eval(pathStep, node) ;
         for (; iter1.hasNext();) {
             Node n1 = iter1.next() ;
-            ALP_1(forwardMode, 0, -1, n1, pathStep, visited) ;
+            ALP_1(0, -1, n1, pathStep, visited) ;
         }
         output.addAll(visited) ;
     }
@@ -115,7 +115,7 @@ public class PathEngineSPARQL extends PathEngine
         output.add(node) ;
     }
 
-    private void ALP_1(boolean forwardMode, int stepCount, int maxStepCount, Node node, Path
path, Set<Node> visited) {
+    private void ALP_1(int stepCount, int maxStepCount, Node node, Path path, Set<Node>
visited) {
         if ( maxStepCount >= 0 && stepCount > maxStepCount )
             return ;
         if ( !visited.add(node) )
@@ -124,7 +124,7 @@ public class PathEngineSPARQL extends PathEngine
         // For each step, add to results and recurse.
         for (; iter1.hasNext();) {
             Node n1 = iter1.next() ;
-            ALP_1(forwardMode, stepCount + 1, maxStepCount, n1, path, visited) ;
+            ALP_1(stepCount + 1, maxStepCount, n1, path, visited) ;
         }
     }
 

http://git-wip-us.apache.org/repos/asf/jena/blob/b732fdf6/jena-arq/src/main/java/org/apache/jena/sparql/path/eval/PathEval.java
----------------------------------------------------------------------
diff --git a/jena-arq/src/main/java/org/apache/jena/sparql/path/eval/PathEval.java b/jena-arq/src/main/java/org/apache/jena/sparql/path/eval/PathEval.java
index e290e2e..cdb813e 100644
--- a/jena-arq/src/main/java/org/apache/jena/sparql/path/eval/PathEval.java
+++ b/jena-arq/src/main/java/org/apache/jena/sparql/path/eval/PathEval.java
@@ -35,13 +35,11 @@ public class PathEval
     /** Evaluate a path : SPARQL semantics */
     static public Iterator<Node> eval(Graph graph, Node node, Path path, Context context)
{
         return eval$(graph, node, path, new PathEngineSPARQL(graph, true, context)) ;
-        // return eval$(graph, node, path, new PathEngineN(graph, true)) ;
     }
 
     /** Evaluate a path */
     static public Iterator<Node> evalReverse(Graph graph, Node node, Path path, Context
context) {
         return eval$(graph, node, path, new PathEngineSPARQL(graph, false, context)) ;
-        // return eval$(graph, node, path, new PathEngineN(graph, false)) ;
     }
 
     /** Evaluate a path : counting semantics */


Mime
View raw message