Removed unused QgsFeature::isDirty() and QgsFeature::clean()

This commit is contained in:
Martin Dobias 2012-10-13 13:33:12 +02:00
parent eb6d4d384d
commit 4bc60ff423
3 changed files with 0 additions and 42 deletions

View File

@ -147,18 +147,6 @@ class QgsFeature
*/
void setValid( bool validity );
/**
* Return the dirty state of this feature.
* Dirty is set if (e.g.) the feature's geometry has been modified in-memory.
*/
bool isDirty() const;
/**
* Reset the dirtiness of the feature. (i.e. make clean)
* You would normally do this after it's saved to permanent storage (e.g. disk, an ACID-compliant database)
*/
void clean();
/**
* Get the geometry object associated with this feature
*/

View File

@ -27,7 +27,6 @@ QgsFeature::QgsFeature( QgsFeatureId id )
, mGeometry( 0 )
, mOwnsGeometry( 0 )
, mValid( false )
, mDirty( 0 )
, mFields( 0 )
{
// NOOP
@ -39,7 +38,6 @@ QgsFeature::QgsFeature( QgsFeature const & rhs )
, mGeometry( 0 )
, mOwnsGeometry( false )
, mValid( rhs.mValid )
, mDirty( rhs.mDirty )
, mFields( rhs.mFields )
{
@ -57,7 +55,6 @@ QgsFeature & QgsFeature::operator=( QgsFeature const & rhs )
return *this;
mFid = rhs.mFid;
mDirty = rhs.mDirty;
mAttributes = rhs.mAttributes;
mValid = rhs.mValid;
mFields = rhs.mFields;
@ -195,17 +192,6 @@ void QgsFeature::setValid( bool validity )
mValid = validity;
}
bool QgsFeature::isDirty() const
{
return mDirty;
}
void QgsFeature::clean()
{
mDirty = false;
}
bool QgsFeature::addAttribute( const QString& name, QVariant value )
{
int fieldIdx = fieldNameIndex( name );

View File

@ -169,18 +169,6 @@ class CORE_EXPORT QgsFeature
*/
void setValid( bool validity );
/**
* Return the dirty state of this feature.
* Dirty is set if (e.g.) the feature's geometry has been modified in-memory.
*/
bool isDirty() const;
/**
* Reset the dirtiness of the feature. (i.e. make clean)
* You would normally do this after it's saved to permanent storage (e.g. disk, an ACID-compliant database)
*/
void clean();
/**
* Get the geometry object associated with this feature
*/
@ -271,10 +259,6 @@ class CORE_EXPORT QgsFeature
// TODO: still applies? [MD]
bool mValid;
//! Flag to indicate if this feature is dirty (e.g. geometry has been modified in-memory)
// TODO: still applies? [MD]
bool mDirty;
//! Optional field map for name-based attribute lookups
const QgsFieldMap* mFields;