Skip to content

Commit d2e1e22

Browse files
author
wonder
committed
Removed unused and misleading function QgsMapLayer::calculateExtent()
git-svn-id: http://svn.osgeo.org/qgis/trunk/qgis@7127 c8812cc2-4d05-0410-92ff-de0c093fc19c
1 parent 64d0f1f commit d2e1e22

File tree

3 files changed

+0
-20
lines changed

3 files changed

+0
-20
lines changed

python/core/qgsmaplayer.sip

-6
Original file line numberDiff line numberDiff line change
@@ -55,12 +55,6 @@ public:
5555
*/
5656
const QString & name() const;
5757

58-
/** Virtual function to calculate the extent of the current layer.
59-
* This function must be overridden in all child classes and implemented
60-
* based on the layer type
61-
*/
62-
virtual QgsRect calculateExtent();
63-
6458
/** Render the layer, to be overridden in child classes
6559
* @param painter Painter that to be used for rendered output
6660
* @param rect Extent of the layer to be drawn

src/core/qgsmaplayer.cpp

-8
Original file line numberDiff line numberDiff line change
@@ -119,14 +119,6 @@ const QgsRect QgsMapLayer::extent()
119119
return mLayerExtent;
120120
}
121121

122-
QgsRect QgsMapLayer::calculateExtent()
123-
{
124-
//just to prevent any crashes
125-
QgsRect rect;
126-
127-
rect.setMinimal();
128-
return rect;
129-
}
130122

131123
bool QgsMapLayer::draw(QPainter *, QgsRect &, QgsMapToPixel *, QgsCoordinateTransform *, bool)
132124
{

src/core/qgsmaplayer.h

-6
Original file line numberDiff line numberDiff line change
@@ -72,12 +72,6 @@ class CORE_EXPORT QgsMapLayer : public QObject
7272
*/
7373
QString const & name() const;
7474

75-
/** Virtual function to calculate the extent of the current layer.
76-
* This function must be overridden in all child classes and implemented
77-
* based on the layer type
78-
*/
79-
virtual QgsRect calculateExtent();
80-
8175
/** Render the layer, to be overridden in child classes
8276
* @param painter Painter that to be used for rendered output
8377
* @param rect Extent of the layer to be drawn

0 commit comments

Comments
 (0)