summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDennis Nienhüser <nienhueser@kde.org>2016-09-03 16:26:09 (GMT)
committerDennis Nienhüser <nienhueser@kde.org>2016-09-03 16:26:09 (GMT)
commitf52af133e3f88a30dbfde761a1a05516dde8a909 (patch)
tree38449fbb8ef8277d4546277813f562cdbe433339
parent50e1269a4c6165c67db3aac867d03f052460eab5 (diff)
Remove unused class
-rw-r--r--tools/osm-simplify/CMakeLists.txt1
-rw-r--r--tools/osm-simplify/LineStringProcessor.cpp70
-rw-r--r--tools/osm-simplify/LineStringProcessor.h29
-rw-r--r--tools/osm-simplify/main.cpp1
4 files changed, 0 insertions, 101 deletions
diff --git a/tools/osm-simplify/CMakeLists.txt b/tools/osm-simplify/CMakeLists.txt
index 9767a60..765db49 100644
--- a/tools/osm-simplify/CMakeLists.txt
+++ b/tools/osm-simplify/CMakeLists.txt
@@ -28,7 +28,6 @@ BaseClipper.cpp
BaseFilter.cpp
PlacemarkFilter.cpp
ShpCoastlineProcessor.cpp
-LineStringProcessor.cpp
TinyPlanetProcessor.cpp
NodeReducer.cpp
TagsFilter.cpp
diff --git a/tools/osm-simplify/LineStringProcessor.cpp b/tools/osm-simplify/LineStringProcessor.cpp
deleted file mode 100644
index cf2d646..0000000
--- a/tools/osm-simplify/LineStringProcessor.cpp
+++ /dev/null
@@ -1,70 +0,0 @@
-//
-// This file is part of the Marble Virtual Globe.
-//
-// This program is free software licensed under the GNU LGPL. You can
-// find a copy of this license in LICENSE.txt in the top directory of
-// the source code.
-//
-// Copyright 2016 David Kolozsvari <freedawson@gmail.com>
-//
-
-#include "LineStringProcessor.h"
-
-#include "GeoDataPlacemark.h"
-#include "GeoDataGeometry.h"
-#include "GeoDataLineString.h"
-
-namespace Marble {
-
-LineStringProcessor::LineStringProcessor(GeoDataDocument* document) :
- PlacemarkFilter(document)
-{
- QList<GeoDataPlacemark*> toRemove;
- foreach (GeoDataPlacemark* placemark, placemarks()) {
- if(placemark->geometry()->nodeType() != GeoDataTypes::GeoDataLineStringType) {
- toRemove.append(placemark);
- }
- }
-
- foreach (GeoDataPlacemark* placemark, toRemove) {
- placemarks().removeOne(placemark);
- }
-}
-
-void LineStringProcessor::process()
-{
- qDebug() << "Polylines to process: " << placemarks().size();
- QList<GeoDataPlacemark*> polylinesToDrop;
-
- foreach (GeoDataPlacemark* polyline, placemarks()) {
- switch(polyline->visualCategory())
- {
- case GeoDataFeature::HighwayCycleway :
- case GeoDataFeature::HighwayFootway :
- case GeoDataFeature::HighwayLivingStreet :
- case GeoDataFeature::HighwayPath :
- case GeoDataFeature::HighwayPedestrian :
- case GeoDataFeature::HighwayRoad :
- case GeoDataFeature::HighwaySteps :
- case GeoDataFeature::HighwayUnknown :
- case GeoDataFeature::HighwayUnclassified :
- polylinesToDrop.append(polyline);
- break;
- default:
- break;
- }
-
- }
-
- int removed = 0;
- foreach (auto* polyline, polylinesToDrop) {
- if(document()->removeOne(polyline)) {
- ++removed;
- }
- }
-
- qDebug() << "Polylines dropped: " << removed;
- qDebug() << document()->name();
-}
-
-}
diff --git a/tools/osm-simplify/LineStringProcessor.h b/tools/osm-simplify/LineStringProcessor.h
deleted file mode 100644
index 59ff6df..0000000
--- a/tools/osm-simplify/LineStringProcessor.h
+++ /dev/null
@@ -1,29 +0,0 @@
-//
-// This file is part of the Marble Virtual Globe.
-//
-// This program is free software licensed under the GNU LGPL. You can
-// find a copy of this license in LICENSE.txt in the top directory of
-// the source code.
-//
-// Copyright 2016 David Kolozsvari <freedawson@gmail.com>
-//
-
-#ifndef LINESTRINGHANDLER_H
-#define LINESTRINGHANDLER_H
-
-#include "PlacemarkFilter.h"
-
-namespace Marble {
-
-class LineStringProcessor : public PlacemarkFilter
-{
-public:
- explicit LineStringProcessor(GeoDataDocument* document);
-
- void process() override;
-
-};
-
-}
-
-#endif // LINESTRINGHANDLER_H
diff --git a/tools/osm-simplify/main.cpp b/tools/osm-simplify/main.cpp
index d983b9d..9740b81 100644
--- a/tools/osm-simplify/main.cpp
+++ b/tools/osm-simplify/main.cpp
@@ -22,7 +22,6 @@
#include <QMessageLogContext>
-#include "LineStringProcessor.h"
#include "ShpCoastlineProcessor.h"
#include "TinyPlanetProcessor.h"
#include "NodeReducer.h"