Skip to content

Commit

Permalink
refactor(Data Access): Remove unused methods (#1643)
Browse files Browse the repository at this point in the history
  • Loading branch information
sfendrich authored Jan 17, 2024
2 parents 1ff0d2d + 2abc286 commit 64372da
Show file tree
Hide file tree
Showing 7 changed files with 0 additions and 35 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -60,10 +60,6 @@ private int nextBlockEntryIndex(int size) {
return res;
}

public void setSegmentSize(int bytes) {
orsEdges.setSegmentSize(bytes);
}

public HeavyVehicleAttributesGraphStorage create(long initBytes) {
orsEdges.create(initBytes * edgeEntryBytes);
return this;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -79,10 +79,6 @@ protected final int nextBlockEntryIndex(int size) {
return res;
}

public void setSegmentSize(int bytes) {
edges.setSegmentSize(bytes);
}

public RoadAccessRestrictionsGraphStorage create(long initBytes) {
edges.create(initBytes * edgeEntryBytes);
return this;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -47,10 +47,6 @@ protected final int nextBlockEntryIndex(int size) {
return res;
}

public void setSegmentSize(int bytes) {
edges.setSegmentSize(bytes);
}

public TollwaysGraphStorage create(long initBytes) {
edges.create(initBytes * edgeEntryBytes);
return this;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -459,17 +459,6 @@ public void init() {
this.orsSpeedPatternLookup = d.find("");
}

/**
* sets the segment size in all additional data storages
*
* @param bytes Size in bytes.
*/
public void setSegmentSize(int bytes) {
orsEdgesProperties.setSegmentSize(bytes);
orsEdgesTrafficLinkLookup.setSegmentSize(bytes);
orsSpeedPatternLookup.setSegmentSize(bytes);
}

/**
* @return true if successfully loaded from persistent storage.
*/
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -48,10 +48,6 @@ protected final int nextBlockEntryIndex(int size) {
return res;
}

public void setSegmentSize(int bytes) {
edges.setSegmentSize(bytes);
}

public TrailDifficultyScaleGraphStorage create(long initBytes) {
edges.create(initBytes * edgeEntryBytes);
return this;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -41,10 +41,6 @@ public void init(Graph graph, Directory dir) {
this.orsEdges = dir.find("ext_waycategory");
}

public void setSegmentSize(int bytes) {
orsEdges.setSegmentSize(bytes);
}

public WayCategoryGraphStorage create(long initBytes) {
orsEdges.create(initBytes * edgeEntryBytes);
return this;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -50,10 +50,6 @@ protected final int nextBlockEntryIndex(int size) {
return edgeEntryIndex;
}

public void setSegmentSize(int bytes) {
orsEdges.setSegmentSize(bytes);
}

public WaySurfaceTypeGraphStorage create(long initBytes) {
orsEdges.create(initBytes * edgeEntryBytes);
return this;
Expand Down

0 comments on commit 64372da

Please sign in to comment.