mirror of
https://github.com/qgis/QGIS.git
synced 2025-04-13 00:03:09 -04:00
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:
parent
6228d9f4f3
commit
6f45e29616
@ -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 @@ 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
|
||||
|
Loading…
x
Reference in New Issue
Block a user