diff --git a/python/core/qgsmaplayer.sip b/python/core/qgsmaplayer.sip index 783d4e87406..700c152e396 100644 --- a/python/core/qgsmaplayer.sip +++ b/python/core/qgsmaplayer.sip @@ -55,12 +55,6 @@ public: */ const QString & name() const; - /** Virtual function to calculate the extent of the current layer. - * This function must be overridden in all child classes and implemented - * based on the layer type - */ - virtual QgsRect calculateExtent(); - /** Render the layer, to be overridden in child classes * @param painter Painter that to be used for rendered output * @param rect Extent of the layer to be drawn diff --git a/src/core/qgsmaplayer.cpp b/src/core/qgsmaplayer.cpp index b7d11c59bc8..be315b97a19 100644 --- a/src/core/qgsmaplayer.cpp +++ b/src/core/qgsmaplayer.cpp @@ -119,14 +119,6 @@ const QgsRect QgsMapLayer::extent() return mLayerExtent; } -QgsRect QgsMapLayer::calculateExtent() -{ - //just to prevent any crashes - QgsRect rect; - - rect.setMinimal(); - return rect; -} bool QgsMapLayer::draw(QPainter *, QgsRect &, QgsMapToPixel *, QgsCoordinateTransform *, bool) { diff --git a/src/core/qgsmaplayer.h b/src/core/qgsmaplayer.h index 950b9cb22ba..2eabf1424af 100644 --- a/src/core/qgsmaplayer.h +++ b/src/core/qgsmaplayer.h @@ -72,12 +72,6 @@ public: */ QString const & name() const; - /** Virtual function to calculate the extent of the current layer. - * This function must be overridden in all child classes and implemented - * based on the layer type - */ - virtual QgsRect calculateExtent(); - /** Render the layer, to be overridden in child classes * @param painter Painter that to be used for rendered output * @param rect Extent of the layer to be drawn