Removed unused and misleading function QgsMapLayer::calculateExtent()

git-svn-id: http://svn.osgeo.org/qgis/trunk@7127 c8812cc2-4d05-0410-92ff-de0c093fc19c
This commit is contained in:
wonder 2007-08-06 14:03:02 +00:00
parent 6228d9f4f3
commit 6f45e29616
3 changed files with 0 additions and 20 deletions

View File

@ -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

View File

@ -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)
{

View File

@ -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