Skip to content

Commit

Permalink
Geometry.h: remove useless virtual method qualifiers (#1155)
Browse files Browse the repository at this point in the history
  • Loading branch information
rouault committed Sep 12, 2024
1 parent 53b111b commit 701c868
Showing 1 changed file with 5 additions and 6 deletions.
11 changes: 5 additions & 6 deletions include/geos/geom/Geometry.h
Original file line number Diff line number Diff line change
Expand Up @@ -270,8 +270,7 @@ class GEOS_DLL Geometry {
*
* @return the ID of the coordinate space in which the Geometry is defined.
*/
virtual int
getSRID() const
int getSRID() const
{
return SRID;
}
Expand Down Expand Up @@ -346,7 +345,7 @@ class GEOS_DLL Geometry {
*
* @see IsValidOp
*/
virtual bool isValid() const;
bool isValid() const;

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

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

/// Comparator for sorting geometry
virtual int compareTo(const Geometry* geom) const;
int compareTo(const Geometry* geom) const;

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

/**
* \brief
Expand Down

0 comments on commit 701c868

Please sign in to comment.