Skip to content

Commit

Permalink
Remove unused arg
Browse files Browse the repository at this point in the history
  • Loading branch information
simonpoole committed Nov 5, 2023
1 parent a01947c commit 3743de7
Showing 1 changed file with 3 additions and 4 deletions.
7 changes: 3 additions & 4 deletions src/main/java/de/blau/android/Main.java
Original file line number Diff line number Diff line change
Expand Up @@ -4589,13 +4589,13 @@ public String descriptionForContextMenu(@NonNull OsmElement e, double lon, doubl
if (e instanceof Node) {
List<Way> ways = App.getLogic().getWaysForNode((Node) e);
for (Way w : ways) {
appendToTextList(parentList, ways, w);
appendToTextList(parentList, w);
}
}
if (e.hasParentRelations()) {
List<Relation> relations = e.getParentRelations();
for (Relation r : relations) {
appendToTextList(parentList, relations, r);
appendToTextList(parentList, r);
}
}
String description = e.getDescription(this, false);
Expand All @@ -4615,10 +4615,9 @@ public String descriptionForContextMenu(@NonNull OsmElement e, double lon, doubl
*
* @param <E> OsmElement type
* @param list a StringBuilder for the output
* @param elements a List of the OsmElements
* @param e the OsmElement
*/
private <E extends OsmElement> void appendToTextList(@NonNull StringBuilder list, @NonNull List<E> elements, @NonNull E e) {
private <E extends OsmElement> void appendToTextList(@NonNull StringBuilder list, @NonNull E e) {
if (list.length() > 0) {
list.append(", ");
}
Expand Down

0 comments on commit 3743de7

Please sign in to comment.