Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

refactor(Data Access): Remove unused methods #1643

Merged
merged 2 commits into from
Jan 17, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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
Loading