Skip to content

Commit

Permalink
Removed unused and misleading function QgsMapLayer::calculateExtent()
Browse files Browse the repository at this point in the history
git-svn-id: http://svn.osgeo.org/qgis/trunk/qgis@7127 c8812cc2-4d05-0410-92ff-de0c093fc19c
  • Loading branch information
wonder committed Aug 6, 2007
1 parent 64d0f1f commit d2e1e22
Show file tree
Hide file tree
Showing 3 changed files with 0 additions and 20 deletions.
6 changes: 0 additions & 6 deletions python/core/qgsmaplayer.sip
Expand Up @@ -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
Expand Down
8 changes: 0 additions & 8 deletions src/core/qgsmaplayer.cpp
Expand Up @@ -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)
{
Expand Down
6 changes: 0 additions & 6 deletions src/core/qgsmaplayer.h
Expand Up @@ -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
Expand Down

0 comments on commit d2e1e22

Please sign in to comment.