Skip to content

Commit cea8b55

Browse files
committedAug 20, 2018
Remove unused method
1 parent 2191db4 commit cea8b55

File tree

2 files changed

+1
-28
lines changed

2 files changed

+1
-28
lines changed
 

‎src/app/qgisapp.cpp

Lines changed: 0 additions & 24 deletions
Original file line numberDiff line numberDiff line change
@@ -5023,30 +5023,6 @@ void QgisApp::askUserForOGRSublayers( QgsVectorLayer *layer )
50235023
}
50245024
}
50255025

5026-
void QgisApp::addDatabaseLayer()
5027-
{
5028-
#ifdef HAVE_POSTGRESQL
5029-
// Fudge for now
5030-
QgsDebugMsg( "about to addRasterLayer" );
5031-
5032-
// TODO: QDialog for now, switch to QWidget in future
5033-
QDialog *dbs = dynamic_cast<QDialog *>( QgsProviderRegistry::instance()->createSelectionWidget( QStringLiteral( "postgres" ), this ) );
5034-
if ( !dbs )
5035-
{
5036-
QMessageBox::warning( this, tr( "Add PostgreSQL Layer" ), tr( "Cannot get PostgreSQL select dialog from provider." ) );
5037-
return;
5038-
}
5039-
connect( dbs, SIGNAL( addDatabaseLayers( QStringList const &, QString const & ) ),
5040-
this, SLOT( addDatabaseLayers( QStringList const &, QString const & ) ) );
5041-
connect( dbs, SIGNAL( progress( int, int ) ),
5042-
this, SLOT( showProgress( int, int ) ) );
5043-
connect( dbs, SIGNAL( progressMessage( QString ) ),
5044-
this, SLOT( showStatusMessage( QString ) ) );
5045-
dbs->exec();
5046-
delete dbs;
5047-
#endif
5048-
} // QgisApp::addDatabaseLayer()
5049-
50505026
void QgisApp::addDatabaseLayers( QStringList const &layerPathList, QString const &providerKey )
50515027
{
50525028
QList<QgsMapLayer *> myList;

‎src/app/qgisapp.h

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1042,10 +1042,7 @@ class APP_EXPORT QgisApp : public QMainWindow, private Ui::MainWindow
10421042
void sponsors();
10431043
//! About QGIS
10441044
void about();
1045-
//#ifdef HAVE_POSTGRESQL
1046-
//! Add a databaselayer to the map
1047-
void addDatabaseLayer();
1048-
//#endif
1045+
10491046
//! Add a list of database layers to the map
10501047
void addDatabaseLayers( QStringList const &layerPathList, QString const &providerKey );
10511048
//! Add a SpatiaLite layer to the map

0 commit comments

Comments
 (0)
Please sign in to comment.