Skip to content

Commit 701c868

Browse files
authored
Geometry.h: remove useless virtual method qualifiers (#1155)
1 parent 53b111b commit 701c868

File tree

1 file changed

+5
-6
lines changed

1 file changed

+5
-6
lines changed

include/geos/geom/Geometry.h

Lines changed: 5 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -270,8 +270,7 @@ class GEOS_DLL Geometry {
270270
*
271271
* @return the ID of the coordinate space in which the Geometry is defined.
272272
*/
273-
virtual int
274-
getSRID() const
273+
int getSRID() const
275274
{
276275
return SRID;
277276
}
@@ -346,7 +345,7 @@ class GEOS_DLL Geometry {
346345
*
347346
* @see IsValidOp
348347
*/
349-
virtual bool isValid() const;
348+
bool isValid() const;
350349

351350
/// Returns whether or not the set of points in this Geometry is empty.
352351
virtual bool isEmpty() const = 0; //Abstract
@@ -540,7 +539,7 @@ class GEOS_DLL Geometry {
540539
* Returns true if the DE-9IM intersection matrix for the two
541540
* Geometrys is T*F**FFF*.
542541
*/
543-
virtual bool equals(const Geometry* g) const;
542+
bool equals(const Geometry* g) const;
544543

545544
/** \brief
546545
* Returns <code>true</code> if this geometry covers the
@@ -819,7 +818,7 @@ class GEOS_DLL Geometry {
819818
virtual void normalize() = 0; //Abstract
820819

821820
/// Comparator for sorting geometry
822-
virtual int compareTo(const Geometry* geom) const;
821+
int compareTo(const Geometry* geom) const;
823822

824823
/// Returns the area of this Geometry.
825824
virtual double getArea() const;
@@ -883,7 +882,7 @@ class GEOS_DLL Geometry {
883882
* Notifies this Geometry that its Coordinates have been changed
884883
* by an external party (using a CoordinateFilter, for example).
885884
*/
886-
virtual void geometryChanged();
885+
void geometryChanged();
887886

888887
/**
889888
* \brief

0 commit comments

Comments
 (0)