@@ -202,99 +202,87 @@ void output_multi_t::stop(osmium::thread::Pool *pool)
202202
203203void output_multi_t::commit () { m_table->commit (); }
204204
205- int output_multi_t::node_add (osmium::Node const &node)
205+ void output_multi_t::node_add (osmium::Node const &node)
206206{
207207 if (m_processor->interests (geometry_processor::interest_node)) {
208- return process_node (node);
208+ process_node (node);
209209 }
210- return 0 ;
211210}
212211
213- int output_multi_t::way_add (osmium::Way *way)
212+ void output_multi_t::way_add (osmium::Way *way)
214213{
215214 if (m_processor->interests (geometry_processor::interest_way) &&
216215 way->nodes ().size () > 1 ) {
217- return process_way (way);
216+ process_way (way);
218217 }
219- return 0 ;
220218}
221219
222- int output_multi_t::relation_add (osmium::Relation const &rel)
220+ void output_multi_t::relation_add (osmium::Relation const &rel)
223221{
224222 if (m_processor->interests (geometry_processor::interest_relation) &&
225223 !rel.members ().empty ()) {
226- return process_relation (rel, 0 );
224+ process_relation (rel, 0 );
227225 }
228- return 0 ;
229226}
230227
231- int output_multi_t::node_modify (osmium::Node const &node)
228+ void output_multi_t::node_modify (osmium::Node const &node)
232229{
233230 if (m_processor->interests (geometry_processor::interest_node)) {
234231 // TODO - need to know it's a node?
235232 delete_from_output (node.id ());
236233
237234 // TODO: need to mark any ways or relations using it - depends on what
238235 // type of output this is... delegate to the geometry processor??
239- return process_node (node);
236+ process_node (node);
240237 }
241-
242- return 0 ;
243238}
244239
245- int output_multi_t::way_modify (osmium::Way *way)
240+ void output_multi_t::way_modify (osmium::Way *way)
246241{
247242 if (m_processor->interests (geometry_processor::interest_way)) {
248243 // TODO - need to know it's a way?
249244 delete_from_output (way->id ());
250245
251246 // TODO: need to mark any relations using it - depends on what
252247 // type of output this is... delegate to the geometry processor??
253- return process_way (way);
248+ process_way (way);
254249 }
255-
256- return 0 ;
257250}
258251
259- int output_multi_t::relation_modify (osmium::Relation const &rel)
252+ void output_multi_t::relation_modify (osmium::Relation const &rel)
260253{
261254 if (m_processor->interests (geometry_processor::interest_relation)) {
262255 // TODO - need to know it's a relation?
263256 delete_from_output (-rel.id ());
264257
265258 // TODO: need to mark any other relations using it - depends on what
266259 // type of output this is... delegate to the geometry processor??
267- return process_relation (rel, false );
260+ process_relation (rel, false );
268261 }
269-
270- return 0 ;
271262}
272263
273- int output_multi_t::node_delete (osmid_t id)
264+ void output_multi_t::node_delete (osmid_t id)
274265{
275266 if (m_processor->interests (geometry_processor::interest_node)) {
276267 // TODO - need to know it's a node?
277268 delete_from_output (id);
278269 }
279- return 0 ;
280270}
281271
282- int output_multi_t::way_delete (osmid_t id)
272+ void output_multi_t::way_delete (osmid_t id)
283273{
284274 if (m_processor->interests (geometry_processor::interest_way)) {
285275 // TODO - need to know it's a way?
286276 delete_from_output (id);
287277 }
288- return 0 ;
289278}
290279
291- int output_multi_t::relation_delete (osmid_t id)
280+ void output_multi_t::relation_delete (osmid_t id)
292281{
293282 if (m_processor->interests (geometry_processor::interest_relation)) {
294283 // TODO - need to know it's a relation?
295284 delete_from_output (-id);
296285 }
297- return 0 ;
298286}
299287
300288int output_multi_t::process_node (osmium::Node const &node)
0 commit comments