Skip to content

Commit 06e04f3

Browse files
committed
Remove function that doesn't do much.
1 parent 2a52b6c commit 06e04f3

File tree

3 files changed

+1
-21
lines changed

3 files changed

+1
-21
lines changed

src/geom.cpp

Lines changed: 0 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -113,22 +113,6 @@ void split_linestring(linestring_t const &line, double split_at,
113113
}
114114
}
115115

116-
void make_line(osmium::NodeRefList const &nodes, reprojection const &proj,
117-
double split_at, std::vector<linestring_t> *out)
118-
{
119-
linestring_t line{nodes, proj};
120-
121-
if (line.empty()) {
122-
return;
123-
}
124-
125-
if (split_at > 0.0) {
126-
split_linestring(line, split_at, out);
127-
} else {
128-
out->emplace_back(std::move(line));
129-
}
130-
}
131-
132116
void make_line(linestring_t const &line, double split_at,
133117
std::vector<linestring_t> *out)
134118
{

src/geom.hpp

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -140,9 +140,6 @@ operator<<(std::basic_ostream<TChar, TTraits> &out, const linestring_t &line)
140140
void split_linestring(linestring_t const &line, double split_at,
141141
std::vector<linestring_t> *out);
142142

143-
void make_line(osmium::NodeRefList const &nodes, reprojection const &proj,
144-
double split_at, std::vector<linestring_t> *out);
145-
146143
void make_line(linestring_t const &line, double split_at,
147144
std::vector<linestring_t> *out);
148145

src/osmium-builder.cpp

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -50,8 +50,7 @@ osmium_builder_t::get_wkb_line(osmium::WayNodeList const &nodes,
5050
double split_at)
5151
{
5252
std::vector<linestring_t> linestrings;
53-
geom::make_line(nodes, *m_proj, split_at, &linestrings);
54-
// XXX geom::make_line(linestring_t{nodes, *m_proj}, split_at, &linestrings);
53+
geom::make_line(linestring_t{nodes, *m_proj}, split_at, &linestrings);
5554

5655
wkbs_t ret;
5756

0 commit comments

Comments
 (0)