Skip to content

Commit

Permalink
Remove unused method
Browse files Browse the repository at this point in the history
  • Loading branch information
m-kuhn committed Jul 24, 2014
1 parent 9a10b79 commit 4e50f54
Show file tree
Hide file tree
Showing 2 changed files with 0 additions and 19 deletions.
18 changes: 0 additions & 18 deletions src/app/qgsfieldsproperties.cpp
Expand Up @@ -460,24 +460,6 @@ void QgsFieldsProperties::attributeDeleted( int idx )
}
}

void QgsFieldsProperties::addAttribute()
{
QgsAddAttrDialog dialog( mLayer, this );
if ( dialog.exec() == QDialog::Accepted )
{
mLayer->beginEditCommand( "Attribute added" );
if ( !addAttribute( dialog.field() ) )
{
mLayer->destroyEditCommand();
QMessageBox::information( this, tr( "Name conflict" ), tr( "The attribute could not be inserted. The name already exists in the table." ) );
}
else
{
mLayer->endEditCommand();
}
}
}

bool QgsFieldsProperties::addAttribute( const QgsField &field )
{
QgsDebugMsg( "inserting attribute " + field.name() + " of type " + field.typeName() );
Expand Down
1 change: 0 additions & 1 deletion src/app/qgsfieldsproperties.h
Expand Up @@ -170,7 +170,6 @@ class APP_EXPORT QgsFieldsProperties : public QWidget, private Ui_QgsFieldsPrope
void on_pbnSelectEditForm_clicked();
void on_mEditorLayoutComboBox_currentIndexChanged( int index );

void addAttribute();
void attributeAdded( int idx );
void attributeDeleted( int idx );
void attributeTypeDialog();
Expand Down

0 comments on commit 4e50f54

Please sign in to comment.