Skip to content

Commit 45e43a8

Browse files
committed
Remove unnecessary code
We know the nodes now always come first.
1 parent 7f782ea commit 45e43a8

File tree

1 file changed

+0
-5
lines changed

1 file changed

+0
-5
lines changed

src/osmdata.cpp

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -213,11 +213,6 @@ slim_middle_t &osmdata_t::slim_middle() const noexcept
213213

214214
void osmdata_t::node(osmium::Node const &node)
215215
{
216-
if (m_type != osmium::item_type::node) {
217-
m_type = osmium::item_type::node;
218-
flush();
219-
}
220-
221216
if (node.deleted()) {
222217
if (!m_append) {
223218
throw std::runtime_error{"Input file contains deleted objects but "

0 commit comments

Comments
 (0)