Skip to content
Permalink
Browse files

Removed unused and misleading function QgsMapLayer::calculateExtent()

git-svn-id: http://svn.osgeo.org/qgis/trunk@7127 c8812cc2-4d05-0410-92ff-de0c093fc19c
  • Loading branch information
wonder
wonder committed Aug 6, 2007
1 parent 6228d9f commit 6f45e29616713ce684d743e75784dd78e056963a
Showing with 0 additions and 20 deletions.
  1. +0 −6 python/core/qgsmaplayer.sip
  2. +0 −8 src/core/qgsmaplayer.cpp
  3. +0 −6 src/core/qgsmaplayer.h
@@ -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
@@ -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)
{
@@ -72,12 +72,6 @@ class CORE_EXPORT QgsMapLayer : public QObject
*/
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

0 comments on commit 6f45e29

Please sign in to comment.
You can’t perform that action at this time.