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 committed Aug 6, 2007
1 parent 6228d9f commit 6f45e29
Show file tree
Hide file tree
Showing 3 changed files with 0 additions and 20 deletions.
@@ -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.