Skip to content

Commit

Permalink
Remove return value, rename
Browse files Browse the repository at this point in the history
  • Loading branch information
dr-jts committed Jan 22, 2024
1 parent 1a3d87a commit c6931a2
Show file tree
Hide file tree
Showing 3 changed files with 12 additions and 11 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -64,7 +64,7 @@ protected int valuePartial() {
return TopologyPredicateValue.UNKNOWN;
}

protected void requireCovers(Envelope a, Envelope b) {
protected void setRequireCovers(Envelope a, Envelope b) {
setRequire(a.covers(b));
}

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -132,17 +132,18 @@ public boolean isSelfNodingRequired() {
* @param dimension
* @return true if the value of the predicate changed
*/
private boolean updateDim(int locA, int locB, int dimension) {
private void updateDim(int locA, int locB, int dimension) {
predicate.updateDim(locA, locB, dimension);
return true;
}

private boolean updateDim(boolean isAB, int loc1, int loc2, int dimension) {
private void updateDim(boolean isAB, int loc1, int loc2, int dimension) {
if (isAB) {
return updateDim(loc1, loc2, dimension);
updateDim(loc1, loc2, dimension);
}
else {
// is ordered BA
updateDim(loc2, loc1, dimension);
}
// is ordered BA
return updateDim(loc2, loc1, dimension);
}

public boolean isResultKnown() {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -78,7 +78,7 @@ public void init(int dimA, int dimB) {

@Override
public void init(Envelope envA, Envelope envB) {
requireCovers(envA, envB);
setRequireCovers(envA, envB);
}

@Override
Expand Down Expand Up @@ -106,7 +106,7 @@ public void init(int dimA, int dimB) {

@Override
public void init(Envelope envA, Envelope envB) {
requireCovers(envA, envB);
setRequireCovers(envA, envB);
}

@Override
Expand Down Expand Up @@ -134,7 +134,7 @@ public void init(int dimA, int dimB) {

@Override
public void init(Envelope envA, Envelope envB) {
requireCovers(envB, envA);
setRequireCovers(envB, envA);
}

@Override
Expand All @@ -160,7 +160,7 @@ public void init(int dimA, int dimB) {

@Override
public void init(Envelope envA, Envelope envB) {
requireCovers(envB, envA);
setRequireCovers(envB, envA);
}

@Override
Expand Down

0 comments on commit c6931a2

Please sign in to comment.