Skip to content

Commit

Permalink
Unit tests: Remove unnecessary includes
Browse files Browse the repository at this point in the history
  • Loading branch information
dbaston committed Aug 15, 2024
1 parent d5f10f9 commit 4bef727
Show file tree
Hide file tree
Showing 141 changed files with 5 additions and 408 deletions.
2 changes: 0 additions & 2 deletions tests/unit/algorithm/AngleTest.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -7,9 +7,7 @@
#include <geos/geom/Coordinate.h>
#include <geos/algorithm/Angle.h>
// std
#include <sstream>
#include <string>
#include <memory>

namespace tut {
//
Expand Down
1 change: 0 additions & 1 deletion tests/unit/algorithm/AreaTest.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,6 @@
#include <geos/geom/PrecisionModel.h>
#include <geos/io/WKTReader.h>
// std
#include <sstream>
#include <string>
#include <memory>

Expand Down
1 change: 0 additions & 1 deletion tests/unit/algorithm/CGAlgorithms/OrientationIsCCWTest.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,6 @@
// std
#include <string>
#include <memory>
#include <cassert>
#include <sstream>

using namespace geos::algorithm;
Expand Down
1 change: 0 additions & 1 deletion tests/unit/algorithm/CGAlgorithms/signedAreaTest.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,6 @@
#include <string>
#include <memory>
#include <cassert>
#include <sstream>

using namespace geos::algorithm;

Expand Down
1 change: 0 additions & 1 deletion tests/unit/algorithm/CentroidTest.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,6 @@
#include <geos/geom/PrecisionModel.h>
#include <geos/io/WKTReader.h>
// std
#include <sstream>
#include <string>
#include <memory>

Expand Down
1 change: 0 additions & 1 deletion tests/unit/algorithm/ConvexHullTest.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,6 @@
// std
#include <sstream>
#include <memory>
#include <cassert>

namespace geos {
namespace geom {
Expand Down
1 change: 0 additions & 1 deletion tests/unit/algorithm/InteriorPointAreaTest.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,6 @@
#include <geos/io/WKTReader.h>
#include <geos/geom/Geometry.h>
// std
#include <sstream>
#include <string>
#include <memory>

Expand Down
2 changes: 0 additions & 2 deletions tests/unit/algorithm/IntersectionTest.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -23,8 +23,6 @@
#include <geos/io/WKTReader.h>
#include <geos/geom/Geometry.h>
// std
#include <sstream>
#include <string>
#include <memory>

namespace tut {
Expand Down
1 change: 0 additions & 1 deletion tests/unit/algorithm/LengthTest.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,6 @@
#include <geos/geom/PrecisionModel.h>
#include <geos/io/WKTReader.h>
// std
#include <sstream>
#include <string>
#include <memory>

Expand Down
1 change: 0 additions & 1 deletion tests/unit/algorithm/LocatePointInRingTest.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,6 @@
#include <geos/geom/LineString.h>
#include <geos/geom/Coordinate.h>
// std
#include <sstream>
#include <string>
#include <memory>

Expand Down
1 change: 0 additions & 1 deletion tests/unit/algorithm/MinimumAreaRectangleTest.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,6 @@
#include <geos/geom/Geometry.h>
#include <utility.h>
// std
#include <sstream>
#include <string>
#include <memory>

Expand Down
1 change: 0 additions & 1 deletion tests/unit/algorithm/MinimumBoundingCircleTest.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,6 @@
#include <geos/io/WKTReader.h>

// std
#include <sstream>
#include <string>
#include <memory>

Expand Down
1 change: 0 additions & 1 deletion tests/unit/algorithm/MinimumDiameterTest.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,6 @@
#include <geos/io/WKTWriter.h>
#include <geos/geom/Geometry.h>
// std
#include <sstream>
#include <string>
#include <memory>

Expand Down
3 changes: 0 additions & 3 deletions tests/unit/algorithm/OrientationIndexFailureTest.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -7,9 +7,6 @@
#include <geos/geom/Coordinate.h>
#include <geos/algorithm/Orientation.h>
// std
#include <sstream>
#include <string>
#include <memory>

using namespace geos::geom;
using namespace geos::algorithm;
Expand Down
1 change: 0 additions & 1 deletion tests/unit/algorithm/PointLocationTest.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,6 @@
#include <geos/algorithm/PointLocation.h>

// std
#include <sstream>
#include <string>
#include <memory>

Expand Down
1 change: 0 additions & 1 deletion tests/unit/algorithm/PointLocatorTest.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,6 @@
#include <geos/geom/Geometry.h> // required for use in unique_ptr
#include <geos/geom/Coordinate.h>
// std
#include <sstream>
#include <string>
#include <memory>

Expand Down
1 change: 0 additions & 1 deletion tests/unit/algorithm/PolygonNodeTopologyTest.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,6 @@
#include <geos/algorithm/PolygonNodeTopology.h>

// std
#include <sstream>
#include <string>
#include <memory>

Expand Down
1 change: 0 additions & 1 deletion tests/unit/algorithm/RobustLineIntersectionTest.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,6 @@
#include <geos/geom/LineString.h>
#include <geos/geom/Coordinate.h>
// std
#include <sstream>
#include <string>
#include <memory>

Expand Down
3 changes: 0 additions & 3 deletions tests/unit/algorithm/RobustLineIntersectorZTest.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -10,9 +10,6 @@
#include <geos/geom/Coordinate.h>
#include <geos/geom/LineSegment.h>
// std
#include <sstream>
#include <string>
#include <memory>
#include <utility>


Expand Down
1 change: 0 additions & 1 deletion tests/unit/algorithm/construct/LargestEmptyCircleTest.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,6 @@
#include <geos/io/WKTReader.h>
#include <geos/constants.h>
// std
#include <sstream>
#include <string>
#include <memory>

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,6 @@
#include <geos/io/WKTWriter.h>
#include <geos/util.h>
// std
#include <sstream>
#include <string>
#include <memory>

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,6 @@
#include <geos/util.h>
// std
#include <cmath>
#include <sstream>
#include <string>
#include <memory>

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,6 @@
#include <geos/geom/Coordinate.h>
// std
#include <cmath>
#include <sstream>
#include <string>
#include <memory>
#include <cfenv>
Expand Down
1 change: 0 additions & 1 deletion tests/unit/algorithm/hull/ConcaveHullOfPolygonsTest.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,6 @@
#include <geos/constants.h>
#include <utility.h>
// std
#include <sstream>
#include <string>
#include <memory>

Expand Down
1 change: 0 additions & 1 deletion tests/unit/algorithm/hull/ConcaveHullTest.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,6 @@
#include <geos/constants.h>
#include <utility.h>
// std
#include <sstream>
#include <string>
#include <memory>

Expand Down
2 changes: 0 additions & 2 deletions tests/unit/algorithm/locate/IndexedPointInAreaLocatorTest.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -5,8 +5,6 @@
#include <geos/algorithm/locate/IndexedPointInAreaLocator.h>

// std
#include <sstream>
#include <string>
#include <memory>

using geos::geom::CoordinateXY;
Expand Down
4 changes: 0 additions & 4 deletions tests/unit/capi/GEOSBufferTest.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -5,10 +5,6 @@
// geos
#include <geos_c.h>
// std
#include <cstdarg>
#include <cstdio>
#include <cstdlib>
#include <cstring>

#include "capi_test_utils.h"

Expand Down
4 changes: 0 additions & 4 deletions tests/unit/capi/GEOSBuildAreaTest.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -4,10 +4,6 @@
// geos
#include <geos_c.h>
// std
#include <cstdarg>
#include <cstdio>
#include <cstdlib>
#include <cmath>

#include "capi_test_utils.h"

Expand Down
4 changes: 0 additions & 4 deletions tests/unit/capi/GEOSCAPIDefinesTest.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -5,10 +5,6 @@
// geos
#include <geos_c.h>
// std
#include <cstdarg>
#include <cstdio>
#include <cstdlib>
#include <cstring>

#define QUOTE(x) #x
#define EXPAND_AND_QUOTE(y) QUOTE(y)
Expand Down
2 changes: 0 additions & 2 deletions tests/unit/capi/GEOSClipByRectTest.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -5,10 +5,8 @@
// geos
#include <geos_c.h>
// std
#include <cstdarg>
#include <cstdio>
#include <cstdlib>
#include <memory>

#include "capi_test_utils.h"

Expand Down
3 changes: 0 additions & 3 deletions tests/unit/capi/GEOSConcaveHullOfPolygonsTest.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -5,9 +5,6 @@
// geos
#include <geos_c.h>
// std
#include <cstdarg>
#include <cstdio>
#include <cstdlib>

#include "capi_test_utils.h"

Expand Down
3 changes: 0 additions & 3 deletions tests/unit/capi/GEOSConcaveHullTest.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -5,9 +5,6 @@
// geos
#include <geos_c.h>
// std
#include <cstdarg>
#include <cstdio>
#include <cstdlib>

#include "capi_test_utils.h"

Expand Down
4 changes: 0 additions & 4 deletions tests/unit/capi/GEOSConstrainedDelaunayTriangulationTest.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -5,10 +5,6 @@
// geos
#include <geos_c.h>
// std
#include <cstdarg>
#include <cstdio>
#include <cstdlib>
#include <memory>

#include "capi_test_utils.h"

Expand Down
3 changes: 0 additions & 3 deletions tests/unit/capi/GEOSContainsTest.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -8,9 +8,6 @@
#include <geos/geom/PrecisionModel.h>
#include <geos/geom/GeometryFactory.h>
// std
#include <cstdarg>
#include <cstdio>
#include <cstdlib>

#include "capi_test_utils.h"

Expand Down
3 changes: 0 additions & 3 deletions tests/unit/capi/GEOSConvexHullTest.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -5,9 +5,6 @@
// geos
#include <geos_c.h>
// std
#include <cstdarg>
#include <cstdio>
#include <cstdlib>

#include "capi_test_utils.h"

Expand Down
2 changes: 0 additions & 2 deletions tests/unit/capi/GEOSCoordSeqTest.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -6,10 +6,8 @@
#include <geos_c.h>
// std
#include <algorithm>
#include <cstdarg>
#include <cstdio>
#include <cstdlib>
#include <memory>

#include "capi_test_utils.h"

Expand Down
5 changes: 0 additions & 5 deletions tests/unit/capi/GEOSCoverageIsValidTest.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -4,11 +4,6 @@
#include <tut/tut.hpp>
// geos
#include <geos_c.h>
// std
#include <cstdarg>
#include <cstdio>
#include <cstdlib>
#include <cstring>

#include "capi_test_utils.h"

Expand Down
5 changes: 0 additions & 5 deletions tests/unit/capi/GEOSCoverageSimplifyTest.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -4,11 +4,6 @@
#include <tut/tut.hpp>
// geos
#include <geos_c.h>
// std
#include <cstdarg>
#include <cstdio>
#include <cstdlib>
#include <cstring>

#include "capi_test_utils.h"

Expand Down
5 changes: 0 additions & 5 deletions tests/unit/capi/GEOSCoverageUnionTest.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -4,11 +4,6 @@
#include <tut/tut.hpp>
// geos
#include <geos_c.h>
// std
#include <cstdarg>
#include <cstdio>
#include <cstdlib>
#include <cstring>

#include "capi_test_utils.h"

Expand Down
5 changes: 0 additions & 5 deletions tests/unit/capi/GEOSDelaunayTriangulationTest.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -4,11 +4,6 @@
#include <tut/tut.hpp>
// geos
#include <geos_c.h>
// std
#include <cstdarg>
#include <cstdio>
#include <cstdlib>
#include <memory>

#include "capi_test_utils.h"

Expand Down
7 changes: 0 additions & 7 deletions tests/unit/capi/GEOSDistanceWithinTest.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -5,13 +5,6 @@
// geos
#include <geos/constants.h>
#include <geos_c.h>
// std
#include <limits>
#include <cstdarg>
#include <cstdio>
#include <cstdlib>
#include <math.h>
#include <memory>

#include "capi_test_utils.h"

Expand Down
3 changes: 0 additions & 3 deletions tests/unit/capi/GEOSEqualsTest.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -6,9 +6,6 @@
#include <geos/constants.h>
#include <geos_c.h>
// std
#include <cstdarg>
#include <cstdio>
#include <cstdlib>
#include <cstring>

#include "capi_test_utils.h"
Expand Down
Loading

0 comments on commit 4bef727

Please sign in to comment.