From e273ec734537d11a1b8795d7dadbd11108d39da1 Mon Sep 17 00:00:00 2001 From: Nyall Dawson Date: Wed, 26 Apr 2017 11:31:42 +1000 Subject: [PATCH] Remove invalid doxygen note It's only flipping a bool, and possibly in some circumstances it's more efficient to add features one by one rather than storing large number of features in a temporary list --- python/core/qgsvectorlayer.sip | 10 ---------- src/core/qgsvectorlayer.h | 9 --------- 2 files changed, 19 deletions(-) diff --git a/python/core/qgsvectorlayer.sip b/python/core/qgsvectorlayer.sip index 35f7eb13e56e..f3a631dcf0ca 100644 --- a/python/core/qgsvectorlayer.sip +++ b/python/core/qgsvectorlayer.sip @@ -903,16 +903,6 @@ Return the provider type for this layer virtual bool addFeature( QgsFeature &feature ); -%Docstring - Adds a single ``feature`` to the layer. - Calling this method causes the layer to recalculate it's extents, which can be - expensive. If multiple features are to be added to the layer then it is more - efficient to call addFeatures(), as addFeatures() will only trigger a single - layer extent recalculation. - \see addFeatures() - :return: true in case of success and false in case of failure - :rtype: bool -%End bool updateFeature( QgsFeature &f ); %Docstring diff --git a/src/core/qgsvectorlayer.h b/src/core/qgsvectorlayer.h index 565c23715781..41cf25c023a5 100644 --- a/src/core/qgsvectorlayer.h +++ b/src/core/qgsvectorlayer.h @@ -872,15 +872,6 @@ class CORE_EXPORT QgsVectorLayer : public QgsMapLayer, public QgsExpressionConte return getFeatures( QgsFeatureRequest( rectangle ) ); } - /** - * Adds a single \a feature to the layer. - * Calling this method causes the layer to recalculate it's extents, which can be - * expensive. If multiple features are to be added to the layer then it is more - * efficient to call addFeatures(), as addFeatures() will only trigger a single - * layer extent recalculation. - * \see addFeatures() - * \returns true in case of success and false in case of failure - */ bool addFeature( QgsFeature &feature ) override; /** Updates an existing feature. This method needs to query the datasource