[geos-commits] [SCM] GEOS branch master updated. 166faaea066d129999af7e7897ea994627bc097f

git at osgeo.org git at osgeo.org
Fri Nov 27 20:05:21 PST 2020


This is an automated email from the git hooks/post-receive script. It was
generated because a ref change was pushed to the repository containing
the project "GEOS".

The branch, master has been updated
       via  166faaea066d129999af7e7897ea994627bc097f (commit)
       via  1f61e9512b508b52a20caddd16cdf1f5f44f8610 (commit)
      from  897972dd3f53515151c04d54920ac959688f8593 (commit)

Those revisions listed above that are new to this repository have
not appeared on any other notification email; so we list those
revisions in full, below.

- Log -----------------------------------------------------------------
commit 166faaea066d129999af7e7897ea994627bc097f
Merge: 897972d 1f61e95
Author: Daniel Baston <dbaston at gmail.com>
Date:   Fri Nov 27 23:04:33 2020 -0500

    Merge branch 'dbaston/clear-assignment-warnings'


commit 1f61e9512b508b52a20caddd16cdf1f5f44f8610
Author: Daniel Baston <dbaston at gmail.com>
Date:   Fri Nov 13 17:32:26 2020 -0500

    Clear warnings about deprecated assignment operator
    
    The LineSegment and PrecisionModel assignment operators were implicitly
    declared because these classes have declared destructors and/or copy
    constructors. Since the destructors and copy constructors are not needed,
    the warning can be removed by deleting them.

diff --git a/include/geos/geom/LineSegment.h b/include/geos/geom/LineSegment.h
index 8928750..459f1b2 100644
--- a/include/geos/geom/LineSegment.h
+++ b/include/geos/geom/LineSegment.h
@@ -67,15 +67,11 @@ public:
 
     LineSegment();
 
-    LineSegment(const LineSegment& ls);
-
     /// Constructs a LineSegment with the given start and end Coordinates.
     LineSegment(const Coordinate& c0, const Coordinate& c1);
 
     LineSegment(double x0, double y0, double x1, double y1);
 
-    virtual ~LineSegment();
-
     void setCoordinates(const Coordinate& c0, const Coordinate& c1);
 
     // obsoleted, use operator[] instead
diff --git a/include/geos/geom/LineSegment.inl b/include/geos/geom/LineSegment.inl
index 85c2497..877426e 100644
--- a/include/geos/geom/LineSegment.inl
+++ b/include/geos/geom/LineSegment.inl
@@ -32,14 +32,6 @@ namespace geos {
 namespace geom { // geos::geom
 
 INLINE
-LineSegment::LineSegment(const LineSegment& ls)
-    :
-    p0(ls.p0),
-    p1(ls.p1)
-{
-}
-
-INLINE
 LineSegment::LineSegment(const Coordinate& c0, const Coordinate& c1)
     :
     p0(c0),
@@ -60,11 +52,6 @@ LineSegment::LineSegment()
 {
 }
 
-INLINE
-LineSegment::~LineSegment()
-{
-}
-
 INLINE double
 LineSegment::distancePerpendicular(const Coordinate& p) const
 {
diff --git a/include/geos/geom/PrecisionModel.h b/include/geos/geom/PrecisionModel.h
index 7ba0c9b..086a009 100644
--- a/include/geos/geom/PrecisionModel.h
+++ b/include/geos/geom/PrecisionModel.h
@@ -157,13 +157,6 @@ public:
      */
     PrecisionModel(double newScale);
 
-    // copy constructor
-    PrecisionModel(const PrecisionModel& pm);
-
-    /// destructor
-    ~PrecisionModel(void);
-
-
     /// The maximum precise value representable in a double.
     ///
     /// Since IEE754 double-precision numbers allow 53 bits of mantissa,
diff --git a/include/geos/geom/PrecisionModel.inl b/include/geos/geom/PrecisionModel.inl
index 4f1fdf6..b9b8b80 100644
--- a/include/geos/geom/PrecisionModel.inl
+++ b/include/geos/geom/PrecisionModel.inl
@@ -28,12 +28,6 @@ namespace geos {
 namespace geom { // geos::geom
 
 /*public*/
-INLINE
-PrecisionModel::~PrecisionModel(void)
-{
-}
-
-/*public*/
 INLINE void
 PrecisionModel::makePrecise(Coordinate* coord) const
 {
diff --git a/src/geom/PrecisionModel.cpp b/src/geom/PrecisionModel.cpp
index d801e88..779a160 100644
--- a/src/geom/PrecisionModel.cpp
+++ b/src/geom/PrecisionModel.cpp
@@ -135,17 +135,6 @@ PrecisionModel::PrecisionModel(double newScale)
     setScale(newScale);
 }
 
-
-PrecisionModel::PrecisionModel(const PrecisionModel& pm)
-    :
-    modelType(pm.modelType),
-    scale(pm.scale)
-{
-#if GEOS_DEBUG
-    cerr << "PrecisionModel[" << this << "] ctor(pm[" << &pm << "])" << endl;
-#endif
-}
-
 /*public*/
 bool
 PrecisionModel::isFloating() const

-----------------------------------------------------------------------

Summary of changes:
 include/geos/geom/LineSegment.h      |  4 ----
 include/geos/geom/LineSegment.inl    | 13 -------------
 include/geos/geom/PrecisionModel.h   |  7 -------
 include/geos/geom/PrecisionModel.inl |  6 ------
 src/geom/PrecisionModel.cpp          | 11 -----------
 5 files changed, 41 deletions(-)


hooks/post-receive
-- 
GEOS


More information about the geos-commits mailing list