@@ -66,15 +66,12 @@ void output_pgsql_t::pgsql_out_way(osmium::Way const &way, taglist_t *tags,
6666 }
6767}
6868
69- void output_pgsql_t::pending_way (osmid_t id, bool exists )
69+ void output_pgsql_t::pending_way (osmid_t id)
7070{
7171 // Try to fetch the way from the DB
7272 buffer.clear ();
7373 if (m_mid->way_get (id, buffer)) {
74- /* If the flag says this object may exist already, delete it first */
75- if (exists) {
76- pgsql_delete_way_from_output (id);
77- }
74+ pgsql_delete_way_from_output (id);
7875
7976 taglist_t outtags;
8077 int polygon;
@@ -90,18 +87,15 @@ void output_pgsql_t::pending_way(osmid_t id, bool exists)
9087 }
9188}
9289
93- void output_pgsql_t::pending_relation (osmid_t id, bool exists )
90+ void output_pgsql_t::pending_relation (osmid_t id)
9491{
9592 // Try to fetch the relation from the DB
9693 // Note that we cannot use the global buffer here because
9794 // we cannot keep a reference to the relation and an autogrow buffer
9895 // might be relocated when more data is added.
9996 rels_buffer.clear ();
10097 if (m_mid->relation_get (id, rels_buffer)) {
101- // If the flag says this object may exist already, delete it first.
102- if (exists) {
103- pgsql_delete_relation_from_output (id);
104- }
98+ pgsql_delete_relation_from_output (id);
10599
106100 auto const &rel = rels_buffer.get <osmium::Relation>(0 );
107101 pgsql_process_relation (rel);
0 commit comments