Skip to content

Commit

Permalink
feat(Data Access): Remove unused methods
Browse files Browse the repository at this point in the history
  • Loading branch information
rtroilo committed Dec 21, 2023
1 parent a2055a4 commit db1f7d2
Show file tree
Hide file tree
Showing 8 changed files with 8 additions and 35 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -131,6 +131,14 @@ public String getGraphPath() {
return graphPath;
}

public String getDataAccess() {
return dataAccess;
}

public void setDataAccess(String dataAccess) {
this.dataAccess = dataAccess;
}

public void setExtStorages(Map<String, Map<String, String>> value) {
extStorages = value;
}
Expand Down
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 db1f7d2

Please sign in to comment.