Skip to content

Commit 72e7435

Browse files
committed
Remove now unused merge_pending_relations() function in outputs
1 parent 1ca0243 commit 72e7435

File tree

9 files changed

+2
-30
lines changed

9 files changed

+2
-30
lines changed

src/osmdata.cpp

Lines changed: 2 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -297,19 +297,9 @@ struct pending_threaded_processor : public middle_t::pending_processor
297297
ids_queued = 0;
298298
ids_done = 0;
299299

300-
//collect all the new rels that became pending from each
301-
//output in each thread back to their respective main outputs
302300
for (auto const &clone : clones) {
303-
//for each clone/original output
304-
for (output_vec_t::const_iterator original_output = outs.begin(),
305-
clone_output = clone.begin();
306-
original_output != outs.end() && clone_output != clone.end();
307-
++original_output, ++clone_output) {
308-
//done copying ways for now
309-
clone_output->get()->commit();
310-
//merge the pending from this threads copy of output back
311-
original_output->get()->merge_pending_relations(
312-
clone_output->get());
301+
for (auto const &clone_output : clone) {
302+
clone_output.get()->commit();
313303
}
314304
}
315305
}

src/output-flex.cpp

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1403,10 +1403,6 @@ void output_flex_t::stage2_proc()
14031403
}
14041404
}
14051405

1406-
void output_flex_t::merge_pending_relations(output_t *)
1407-
{
1408-
}
1409-
14101406
void output_flex_t::merge_expire_trees(output_t *other)
14111407
{
14121408
auto *opgsql = dynamic_cast<output_flex_t *>(other);

src/output-flex.hpp

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -79,7 +79,6 @@ class output_flex_t : public output_t
7979
void way_delete(osmid_t id) override;
8080
void relation_delete(osmid_t id) override;
8181

82-
void merge_pending_relations(output_t *other) override;
8382
void merge_expire_trees(output_t *other) override;
8483

8584
int app_define_table();

src/output-multi.cpp

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -330,10 +330,6 @@ void output_multi_t::delete_from_output(osmid_t id)
330330
}
331331
}
332332

333-
void output_multi_t::merge_pending_relations(output_t *)
334-
{
335-
}
336-
337333
void output_multi_t::merge_expire_trees(output_t *other)
338334
{
339335
auto *const omulti = dynamic_cast<output_multi_t *>(other);

src/output-multi.hpp

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -64,7 +64,6 @@ class output_multi_t : public output_t
6464
void way_delete(osmid_t id) override;
6565
void relation_delete(osmid_t id) override;
6666

67-
void merge_pending_relations(output_t *other) override;
6867
void merge_expire_trees(output_t *other) override;
6968

7069
protected:

src/output-pgsql.cpp

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -425,10 +425,6 @@ output_pgsql_t::output_pgsql_t(
425425

426426
output_pgsql_t::~output_pgsql_t() = default;
427427

428-
void output_pgsql_t::merge_pending_relations(output_t *)
429-
{
430-
}
431-
432428
void output_pgsql_t::merge_expire_trees(output_t *other)
433429
{
434430
auto *const opgsql = dynamic_cast<output_pgsql_t *>(other);

src/output-pgsql.hpp

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -64,7 +64,6 @@ class output_pgsql_t : public output_t
6464
void way_delete(osmid_t id) override;
6565
void relation_delete(osmid_t id) override;
6666

67-
void merge_pending_relations(output_t *other) override;
6867
void merge_expire_trees(output_t *other) override;
6968

7069
protected:

src/output.cpp

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -199,6 +199,4 @@ output_t::~output_t() = default;
199199

200200
options_t const *output_t::get_options() const { return &m_options; }
201201

202-
void output_t::merge_pending_relations(output_t *) {}
203-
204202
void output_t::merge_expire_trees(output_t *) {}

src/output.hpp

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -75,7 +75,6 @@ class output_t
7575

7676
const options_t *get_options() const;
7777

78-
virtual void merge_pending_relations(output_t *other);
7978
virtual void merge_expire_trees(output_t *other);
8079

8180
protected:

0 commit comments

Comments
 (0)