@@ -67,7 +67,7 @@ void output_pgsql_t::pgsql_out_way(osmium::Way const &way, taglist_t *tags,
6767
6868 auto const wkb = geom_to_ewkb (projected_geom);
6969 if (!wkb.empty ()) {
70- m_expire.from_geometry (projected_geom, way. id () );
70+ m_expire.from_geometry (projected_geom);
7171 if (m_enable_way_area) {
7272 double const area = calculate_area (
7373 get_options ()->reproject_area , geom, projected_geom);
@@ -82,7 +82,7 @@ void output_pgsql_t::pgsql_out_way(osmium::Way const &way, taglist_t *tags,
8282 auto const geoms = geom::split_multi (geom::segmentize (
8383 geom::transform (geom::create_linestring (way), *m_proj), split_at));
8484 for (auto const &sgeom : geoms) {
85- m_expire.from_geometry (sgeom, way. id () );
85+ m_expire.from_geometry (sgeom);
8686 auto const wkb = geom_to_ewkb (sgeom);
8787 m_tables[t_line]->write_row (way.id (), *tags, wkb);
8888 if (roads) {
@@ -169,7 +169,7 @@ void output_pgsql_t::node_add(osmium::Node const &node)
169169 }
170170
171171 auto const geom = geom::transform (geom::create_point (node), *m_proj);
172- m_expire.from_geometry (geom, node. id () );
172+ m_expire.from_geometry (geom);
173173 auto const wkb = geom_to_ewkb (geom);
174174 m_tables[t_point]->write_row (node.id (), outtags, wkb);
175175}
@@ -272,7 +272,7 @@ void output_pgsql_t::pgsql_process_relation(osmium::Relation const &rel)
272272 }
273273 auto const geoms = geom::split_multi (std::move (projected_geom));
274274 for (auto const &sgeom : geoms) {
275- m_expire.from_geometry (sgeom, -rel. id () );
275+ m_expire.from_geometry (sgeom);
276276 auto const wkb = geom_to_ewkb (sgeom);
277277 m_tables[t_line]->write_row (-rel.id (), outtags, wkb);
278278 if (roads) {
@@ -288,7 +288,7 @@ void output_pgsql_t::pgsql_process_relation(osmium::Relation const &rel)
288288 !get_options ()->enable_multi );
289289 for (auto const &sgeom : geoms) {
290290 auto const projected_geom = geom::transform (sgeom, *m_proj);
291- m_expire.from_geometry (projected_geom, -rel. id () );
291+ m_expire.from_geometry (projected_geom);
292292 auto const wkb = geom_to_ewkb (projected_geom);
293293 if (m_enable_way_area) {
294294 double const area = calculate_area (
@@ -325,7 +325,7 @@ void output_pgsql_t::relation_add(osmium::Relation const &rel)
325325 * contain the change for that also. */
326326void output_pgsql_t::node_delete (osmid_t osm_id)
327327{
328- if (m_expire.from_result (m_tables[t_point]->get_wkb (osm_id), osm_id ) != 0 ) {
328+ if (m_expire.from_result (m_tables[t_point]->get_wkb (osm_id)) != 0 ) {
329329 m_tables[t_point]->delete_row (osm_id);
330330 }
331331}
@@ -343,10 +343,10 @@ void output_pgsql_t::pgsql_delete_way_from_output(osmid_t osm_id)
343343 }
344344
345345 m_tables[t_roads]->delete_row (osm_id);
346- if (m_expire.from_result (m_tables[t_line]->get_wkb (osm_id), osm_id ) != 0 ) {
346+ if (m_expire.from_result (m_tables[t_line]->get_wkb (osm_id)) != 0 ) {
347347 m_tables[t_line]->delete_row (osm_id);
348348 }
349- if (m_expire.from_result (m_tables[t_poly]->get_wkb (osm_id), osm_id ) != 0 ) {
349+ if (m_expire.from_result (m_tables[t_poly]->get_wkb (osm_id)) != 0 ) {
350350 m_tables[t_poly]->delete_row (osm_id);
351351 }
352352}
@@ -360,12 +360,10 @@ void output_pgsql_t::way_delete(osmid_t osm_id)
360360void output_pgsql_t::pgsql_delete_relation_from_output (osmid_t osm_id)
361361{
362362 m_tables[t_roads]->delete_row (-osm_id);
363- if (m_expire.from_result (m_tables[t_line]->get_wkb (-osm_id), -osm_id) !=
364- 0 ) {
363+ if (m_expire.from_result (m_tables[t_line]->get_wkb (-osm_id)) != 0 ) {
365364 m_tables[t_line]->delete_row (-osm_id);
366365 }
367- if (m_expire.from_result (m_tables[t_poly]->get_wkb (-osm_id), -osm_id) !=
368- 0 ) {
366+ if (m_expire.from_result (m_tables[t_poly]->get_wkb (-osm_id)) != 0 ) {
369367 m_tables[t_poly]->delete_row (-osm_id);
370368 }
371369}
0 commit comments