Skip to content
Permalink
Browse files

Remove unused method

  • Loading branch information
nyalldawson committed Aug 20, 2018
1 parent 2191db4 commit cea8b55480e7e89bc63bd0bcc12607650e16d6c7
Showing with 1 addition and 28 deletions.
  1. +0 −24 src/app/qgisapp.cpp
  2. +1 −4 src/app/qgisapp.h
@@ -5023,30 +5023,6 @@ void QgisApp::askUserForOGRSublayers( QgsVectorLayer *layer )
}
}

void QgisApp::addDatabaseLayer()
{
#ifdef HAVE_POSTGRESQL
// Fudge for now
QgsDebugMsg( "about to addRasterLayer" );

// TODO: QDialog for now, switch to QWidget in future
QDialog *dbs = dynamic_cast<QDialog *>( QgsProviderRegistry::instance()->createSelectionWidget( QStringLiteral( "postgres" ), this ) );
if ( !dbs )
{
QMessageBox::warning( this, tr( "Add PostgreSQL Layer" ), tr( "Cannot get PostgreSQL select dialog from provider." ) );
return;
}
connect( dbs, SIGNAL( addDatabaseLayers( QStringList const &, QString const & ) ),
this, SLOT( addDatabaseLayers( QStringList const &, QString const & ) ) );
connect( dbs, SIGNAL( progress( int, int ) ),
this, SLOT( showProgress( int, int ) ) );
connect( dbs, SIGNAL( progressMessage( QString ) ),
this, SLOT( showStatusMessage( QString ) ) );
dbs->exec();
delete dbs;
#endif
} // QgisApp::addDatabaseLayer()

void QgisApp::addDatabaseLayers( QStringList const &layerPathList, QString const &providerKey )
{
QList<QgsMapLayer *> myList;
@@ -1042,10 +1042,7 @@ class APP_EXPORT QgisApp : public QMainWindow, private Ui::MainWindow
void sponsors();
//! About QGIS
void about();
//#ifdef HAVE_POSTGRESQL
//! Add a databaselayer to the map
void addDatabaseLayer();
//#endif

//! Add a list of database layers to the map
void addDatabaseLayers( QStringList const &layerPathList, QString const &providerKey );
//! Add a SpatiaLite layer to the map

0 comments on commit cea8b55

Please sign in to comment.
You can’t perform that action at this time.