Skip to content

Commit aa62f3a

Browse files
committedAug 20, 2018
Remove unused methods
1 parent fd934d8 commit aa62f3a

File tree

2 files changed

+0
-96
lines changed

2 files changed

+0
-96
lines changed
 

‎src/app/qgisapp.cpp

Lines changed: 0 additions & 84 deletions
Original file line numberDiff line numberDiff line change
@@ -5095,37 +5095,6 @@ void QgisApp::addDatabaseLayers( QStringList const &layerPathList, QString const
50955095
QApplication::restoreOverrideCursor();
50965096
}
50975097

5098-
5099-
void QgisApp::addSpatiaLiteLayer()
5100-
{
5101-
// show the SpatiaLite dialog
5102-
QDialog *dbs = dynamic_cast<QDialog *>( QgsProviderRegistry::instance()->createSelectionWidget( QStringLiteral( "spatialite" ), this ) );
5103-
if ( !dbs )
5104-
{
5105-
QMessageBox::warning( this, tr( "Add SpatiaLite Layer" ), tr( "Cannot get SpatiaLite select dialog from provider." ) );
5106-
return;
5107-
}
5108-
connect( dbs, SIGNAL( addDatabaseLayers( QStringList const &, QString const & ) ),
5109-
this, SLOT( addDatabaseLayers( QStringList const &, QString const & ) ) );
5110-
dbs->exec();
5111-
delete dbs;
5112-
} // QgisApp::addSpatiaLiteLayer()
5113-
5114-
void QgisApp::addDelimitedTextLayer()
5115-
{
5116-
// show the Delimited text dialog
5117-
QDialog *dts = dynamic_cast<QDialog *>( QgsProviderRegistry::instance()->createSelectionWidget( QStringLiteral( "delimitedtext" ), this ) );
5118-
if ( !dts )
5119-
{
5120-
QMessageBox::warning( this, tr( "Add Delimited Text Layer" ), tr( "Cannot get Delimited Text select dialog from provider." ) );
5121-
return;
5122-
}
5123-
connect( dts, SIGNAL( addVectorLayer( QString, QString, QString ) ),
5124-
this, SLOT( addSelectedVectorLayer( QString, QString, QString ) ) );
5125-
dts->exec();
5126-
delete dts;
5127-
} // QgisApp::addDelimitedTextLayer()
5128-
51295098
void QgisApp::addVirtualLayer()
51305099
{
51315100
// show the Delimited text dialog
@@ -5167,59 +5136,6 @@ void QgisApp::replaceSelectedVectorLayer( const QString &oldId, const QString &u
51675136
QgsProject::instance()->removeMapLayer( oldLayer );
51685137
} // QgisApp:replaceSelectedVectorLayer
51695138

5170-
void QgisApp::addMssqlLayer()
5171-
{
5172-
// show the MSSQL dialog
5173-
QDialog *dbs = dynamic_cast<QDialog *>( QgsProviderRegistry::instance()->createSelectionWidget( QStringLiteral( "mssql" ), this ) );
5174-
if ( !dbs )
5175-
{
5176-
QMessageBox::warning( this, tr( "Add MSSQL Layer" ), tr( "Cannot get MSSQL select dialog from provider." ) );
5177-
return;
5178-
}
5179-
connect( dbs, SIGNAL( addDatabaseLayers( QStringList const &, QString const & ) ),
5180-
this, SLOT( addDatabaseLayers( QStringList const &, QString const & ) ) );
5181-
dbs->exec();
5182-
delete dbs;
5183-
} // QgisApp::addMssqlLayer()
5184-
5185-
void QgisApp::addDb2Layer()
5186-
{
5187-
// show the DB2 dialog
5188-
QgsDebugMsg( "Show dialog for DB2 " );
5189-
QDialog *dbs = dynamic_cast<QDialog *>( QgsProviderRegistry::instance()->createSelectionWidget( QStringLiteral( "DB2" ), this ) );
5190-
if ( !dbs )
5191-
{
5192-
QMessageBox::warning( this, tr( "Add DB2 Layer" ), tr( "Cannot get DB2 select dialog from provider." ) );
5193-
return;
5194-
}
5195-
connect( dbs, SIGNAL( addDatabaseLayers( QStringList const &, QString const & ) ),
5196-
this, SLOT( addDatabaseLayers( QStringList const &, QString const & ) ) );
5197-
dbs->exec();
5198-
delete dbs;
5199-
} // QgisApp::addDb2Layer()
5200-
5201-
void QgisApp::addOracleLayer()
5202-
{
5203-
#ifdef HAVE_ORACLE
5204-
// show the Oracle dialog
5205-
QDialog *dbs = dynamic_cast<QDialog *>( QgsProviderRegistry::instance()->createSelectionWidget( "oracle", this ) );
5206-
if ( !dbs )
5207-
{
5208-
QMessageBox::warning( this, tr( "Add Oracle Layer" ), tr( "Cannot get Oracle select dialog from provider." ) );
5209-
return;
5210-
}
5211-
connect( dbs, SIGNAL( addDatabaseLayers( QStringList const &, QString const & ) ),
5212-
this, SLOT( addDatabaseLayers( QStringList const &, QString const & ) ) );
5213-
connect( dbs, SIGNAL( progress( int, int ) ),
5214-
this, SLOT( showProgress( int, int ) ) );
5215-
connect( dbs, SIGNAL( progressMessage( QString ) ),
5216-
this, SLOT( showStatusMessage( QString ) ) );
5217-
dbs->exec();
5218-
delete dbs;
5219-
#endif
5220-
} // QgisApp::addOracleLayer()
5221-
5222-
52235139
void QgisApp::fileExit()
52245140
{
52255141
if ( QgsApplication::taskManager()->countActiveTasks() > 0 )

‎src/app/qgisapp.h

Lines changed: 0 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -1045,22 +1045,10 @@ class APP_EXPORT QgisApp : public QMainWindow, private Ui::MainWindow
10451045

10461046
//! Add a list of database layers to the map
10471047
void addDatabaseLayers( QStringList const &layerPathList, QString const &providerKey );
1048-
//! Add a SpatiaLite layer to the map
1049-
void addSpatiaLiteLayer();
1050-
//! Add a Delimited Text layer to the map
1051-
void addDelimitedTextLayer();
10521048
//! Add a vector layer defined by uri, layer name, data source uri
10531049
void addSelectedVectorLayer( const QString &uri, const QString &layerName, const QString &provider );
10541050
//! Replace the selected layer by a vector layer defined by uri, layer name, data source uri
10551051
void replaceSelectedVectorLayer( const QString &oldId, const QString &uri, const QString &layerName, const QString &provider );
1056-
//! Add a MSSQL layer to the map
1057-
void addMssqlLayer();
1058-
//! Add a DB2 layer to the map
1059-
void addDb2Layer();
1060-
//#ifdef HAVE_ORACLE
1061-
//! Add a Oracle layer to the map
1062-
void addOracleLayer();
1063-
//#endif
10641052
//! Add a virtual layer
10651053
void addVirtualLayer();
10661054
//! toggles whether the current selected layer is in overview or not

0 commit comments

Comments
 (0)