Skip to content

Commit 040c4b3

Browse files
committed
Small cleanup of QgsAbstractGeometry header
1 parent 3c4567d commit 040c4b3

File tree

3 files changed

+0
-27
lines changed

3 files changed

+0
-27
lines changed

python/core/geometry/qgsabstractgeometry.sip

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -130,7 +130,6 @@ class QgsAbstractGeometry
130130
:rtype: bool
131131
%End
132132

133-
134133
virtual QgsAbstractGeometry *boundary() const = 0 /Factory/;
135134
%Docstring
136135
Returns the closure of the combinatorial boundary of the geometry (ie the topological boundary of the geometry).
@@ -237,7 +236,6 @@ class QgsAbstractGeometry
237236
\param t QTransform transformation
238237
%End
239238

240-
241239
virtual void draw( QPainter &p ) const = 0;
242240
%Docstring
243241
Draws the geometry using the specified QPainter.

src/core/geometry/qgsabstractgeometry.cpp

Lines changed: 0 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -52,16 +52,6 @@ bool QgsAbstractGeometry::isMeasure() const
5252
return QgsWkbTypes::hasM( mWkbType );
5353
}
5454

55-
#if 0
56-
void QgsAbstractGeometry::clip( const QgsRectangle &rect )
57-
{
58-
// TODO
59-
// - Implementation
60-
// - API doc in header
61-
62-
// Don't insert Q_UNUSED, so we have a warning that reminds us of this TODO
63-
}
64-
#endif
6555

6656
void QgsAbstractGeometry::setZMTypeFromSubGeometry( const QgsAbstractGeometry *subgeom, QgsWkbTypes::Type baseGeomType )
6757
{

src/core/geometry/qgsabstractgeometry.h

Lines changed: 0 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -115,7 +115,6 @@ class CORE_EXPORT QgsAbstractGeometry
115115
* 1 for a linestring and 2 for a polygon.
116116
*/
117117
virtual int dimension() const = 0;
118-
//virtual int coordDim() const { return mCoordDimension; }
119118

120119
/** Returns a unique string representing the geometry type.
121120
* \see wkbType
@@ -145,16 +144,6 @@ class CORE_EXPORT QgsAbstractGeometry
145144
*/
146145
bool isMeasure() const;
147146

148-
#if 0
149-
virtual bool transform( const QgsCoordinateTransform &ct ) = 0;
150-
virtual bool isEmpty() const = 0;
151-
virtual bool isSimple() const = 0;
152-
virtual bool isValid() const = 0;
153-
virtual QgsMultiPointV2 *locateAlong() const = 0;
154-
virtual QgsMultiCurve *locateBetween() const = 0;
155-
virtual QgsRectangle envelope() const = 0;
156-
#endif
157-
158147
/** Returns the closure of the combinatorial boundary of the geometry (ie the topological boundary of the geometry).
159148
* For instance, a polygon geometry will have a boundary consisting of the linestrings for each ring in the polygon.
160149
* \returns boundary for geometry. May be null for some geometry types.
@@ -246,10 +235,6 @@ class CORE_EXPORT QgsAbstractGeometry
246235
*/
247236
virtual void transform( const QTransform &t ) = 0;
248237

249-
#if 0
250-
virtual void clip( const QgsRectangle &rect ); //todo
251-
#endif
252-
253238
/** Draws the geometry using the specified QPainter.
254239
* \param p destination QPainter
255240
*/

0 commit comments

Comments
 (0)