Skip to content

Commit

Permalink
simplify osm_tag option processing. (#1325)
Browse files Browse the repository at this point in the history
I suspect the check of "tagnd" was used in developement before
opt_tagnd was added.  The only thing the check did was ignore
opt_tag values that started with tagnd, they weren't used elsewhere.
  • Loading branch information
tsteven4 authored Aug 17, 2024
1 parent 6e319e8 commit c53ea10
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions osm.cc
Original file line number Diff line number Diff line change
Expand Up @@ -835,9 +835,7 @@ OsmFormat::osm_rte_disp_trail(const route_head* route)
osm_write_tag("name", route->rte_name);
osm_write_tag("note", route->rte_desc);

if (opt_tag && (case_ignore_strncmp(opt_tag, "tagnd", 5) != 0)) {
osm_write_opt_tag(opt_tag);
}
osm_write_opt_tag(opt_tag);

fout->writeEndElement(); // way
}
Expand Down

0 comments on commit c53ea10

Please sign in to comment.