Skip to content

v0.2.48..v0.2.49 changeset SuperfluousWayRemover.cpp

Garret Voltz edited this page Oct 2, 2019 · 1 revision
diff --git a/hoot-core/src/main/cpp/hoot/core/ops/SuperfluousWayRemover.cpp b/hoot-core/src/main/cpp/hoot/core/ops/SuperfluousWayRemover.cpp
index e8d8460..c8a5af9 100644
--- a/hoot-core/src/main/cpp/hoot/core/ops/SuperfluousWayRemover.cpp
+++ b/hoot-core/src/main/cpp/hoot/core/ops/SuperfluousWayRemover.cpp
@@ -50,10 +50,13 @@ _inputMap(map)
 {
 }
 
-void SuperfluousWayRemover::removeWays(const std::shared_ptr<OsmMap>& map)
+long SuperfluousWayRemover::removeWays(const std::shared_ptr<OsmMap>& map)
 {
-  SuperfluousWayRemover swr(map);
-  return swr.removeWays();
+  SuperfluousWayRemover wayRemover(map);
+  LOG_INFO(wayRemover.getInitStatusMessage());
+  wayRemover.removeWays();
+  LOG_DEBUG(wayRemover.getCompletedStatusMessage());
+  return wayRemover.getNumAffected();
 }
 
 void SuperfluousWayRemover::removeWays()
Clone this wiki locally