Skip to content

Commit 4e50f54

Browse files
committed
Remove unused method
1 parent 9a10b79 commit 4e50f54

File tree

2 files changed

+0
-19
lines changed

2 files changed

+0
-19
lines changed

src/app/qgsfieldsproperties.cpp

Lines changed: 0 additions & 18 deletions
Original file line numberDiff line numberDiff line change
@@ -460,24 +460,6 @@ void QgsFieldsProperties::attributeDeleted( int idx )
460460
}
461461
}
462462

463-
void QgsFieldsProperties::addAttribute()
464-
{
465-
QgsAddAttrDialog dialog( mLayer, this );
466-
if ( dialog.exec() == QDialog::Accepted )
467-
{
468-
mLayer->beginEditCommand( "Attribute added" );
469-
if ( !addAttribute( dialog.field() ) )
470-
{
471-
mLayer->destroyEditCommand();
472-
QMessageBox::information( this, tr( "Name conflict" ), tr( "The attribute could not be inserted. The name already exists in the table." ) );
473-
}
474-
else
475-
{
476-
mLayer->endEditCommand();
477-
}
478-
}
479-
}
480-
481463
bool QgsFieldsProperties::addAttribute( const QgsField &field )
482464
{
483465
QgsDebugMsg( "inserting attribute " + field.name() + " of type " + field.typeName() );

src/app/qgsfieldsproperties.h

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -170,7 +170,6 @@ class APP_EXPORT QgsFieldsProperties : public QWidget, private Ui_QgsFieldsPrope
170170
void on_pbnSelectEditForm_clicked();
171171
void on_mEditorLayoutComboBox_currentIndexChanged( int index );
172172

173-
void addAttribute();
174173
void attributeAdded( int idx );
175174
void attributeDeleted( int idx );
176175
void attributeTypeDialog();

0 commit comments

Comments
 (0)