Skip to content

Commit

Permalink
Remove invalid doxygen note
Browse files Browse the repository at this point in the history
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
  • Loading branch information
nyalldawson committed Apr 26, 2017
1 parent 1280779 commit e273ec7
Show file tree
Hide file tree
Showing 2 changed files with 0 additions and 19 deletions.
10 changes: 0 additions & 10 deletions python/core/qgsvectorlayer.sip
Expand Up @@ -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
Expand Down
9 changes: 0 additions & 9 deletions src/core/qgsvectorlayer.h
Expand Up @@ -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
Expand Down

0 comments on commit e273ec7

Please sign in to comment.