Skip to content

Commit

Permalink
refact: removed not used method parameter
Browse files Browse the repository at this point in the history
  • Loading branch information
litvinovg authored and brianjlowe committed Jun 10, 2024
1 parent 8e62739 commit 9b92968
Showing 1 changed file with 3 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -571,13 +571,13 @@ private static void addStatementPatterns(List<Statement> stmts,
Set<String> lines = new HashSet<>();
for(Statement stmt : stmts) {
Triple t = stmt.asTriple();
String lineWithoutVars = getLine(patternBuff, t, false);
String lineWithoutVars = getLine(t, false);
if (lines.contains(lineWithoutVars)) {
continue;
} else {
lines.add(lineWithoutVars);
}
patternBuff.append(getLine(patternBuff, t, true));
patternBuff.append(getLine(t, true));
if (whereClause) {
if (t.getSubject().isBlank()) {
patternBuff.append(" FILTER(isBlank(").append(
Expand All @@ -591,7 +591,7 @@ private static void addStatementPatterns(List<Statement> stmts,
}
}

private static String getLine(StringBuffer patternBuff, Triple t, boolean createBlankNodeVariables) {
private static String getLine(Triple t, boolean createBlankNodeVariables) {
if (createBlankNodeVariables) {
return sparqlNodeDelete(t.getSubject(), null) +
" " +
Expand Down

0 comments on commit 9b92968

Please sign in to comment.