Skip to content

Commit 5e54b93

Browse files
committed
remove pseudo options HAVE_MSSQL, HAVE_DB2, HAVE_SPATIALITE
and HAVE_PYTHON
1 parent 1cbcf49 commit 5e54b93

File tree

4 files changed

+0
-40
lines changed

4 files changed

+0
-40
lines changed

CMakeLists.txt

-10
Original file line numberDiff line numberDiff line change
@@ -233,16 +233,6 @@ IF (POSTGRES_FOUND)
233233
SET (HAVE_POSTGRESQL TRUE)
234234
ENDIF (POSTGRES_FOUND)
235235

236-
# following variable is used in qgsconfig.h
237-
SET (HAVE_SPATIALITE TRUE)
238-
239-
# following variable is used in qgsconfig.h
240-
SET (HAVE_MSSQL TRUE)
241-
242-
243-
# following variable is used in qgsconfig.h
244-
SET (HAVE_DB2 TRUE)
245-
246236
SET (WITH_QTWEBKIT TRUE CACHE INTERNAL "Enable QtWebkit support")
247237
IF (WITH_QTWEBKIT)
248238
ADD_DEFINITIONS(-DWITH_QTWEBKIT)

cmake_templates/qgsconfig.h.in

-8
Original file line numberDiff line numberDiff line change
@@ -42,16 +42,8 @@
4242

4343
#cmakedefine HAVE_POSTGRESQL
4444

45-
#cmakedefine HAVE_SPATIALITE
46-
47-
#cmakedefine HAVE_MSSQL
48-
49-
#cmakedefine HAVE_DB2
50-
5145
#cmakedefine HAVE_ORACLE
5246

53-
#cmakedefine HAVE_PYTHON
54-
5547
#cmakedefine HAVE_TOUCH
5648

5749
#cmakedefine HAVE_OSGEARTHQT

src/app/qgisapp.cpp

-18
Original file line numberDiff line numberDiff line change
@@ -1551,16 +1551,6 @@ void QgisApp::createActions()
15511551
mActionAddPgLayer = 0;
15521552
#endif
15531553

1554-
#ifndef HAVE_MSSQL
1555-
delete mActionAddMssqlLayer;
1556-
mActionAddMssqlLayer = 0;
1557-
#endif
1558-
1559-
#ifndef HAVE_DB2
1560-
delete mActionAddDb2Layer;
1561-
mActionAddDb2Layer = 0;
1562-
#endif
1563-
15641554
#ifndef HAVE_ORACLE
15651555
delete mActionAddOracleLayer;
15661556
mActionAddOracleLayer = nullptr;
@@ -2224,12 +2214,8 @@ void QgisApp::setTheme( const QString& theThemeName )
22242214
#endif
22252215
mActionNewSpatiaLiteLayer->setIcon( QgsApplication::getThemeIcon( "/mActionNewSpatiaLiteLayer.svg" ) );
22262216
mActionAddSpatiaLiteLayer->setIcon( QgsApplication::getThemeIcon( "/mActionAddSpatiaLiteLayer.svg" ) );
2227-
#ifdef HAVE_MSSQL
22282217
mActionAddMssqlLayer->setIcon( QgsApplication::getThemeIcon( "/mActionAddMssqlLayer.svg" ) );
2229-
#endif
2230-
#ifdef HAVE_DB2
22312218
mActionAddDb2Layer->setIcon( QgsApplication::getThemeIcon( "/mActionAddDb2Layer.svg" ) );
2232-
#endif
22332219
#ifdef HAVE_ORACLE
22342220
mActionAddOracleLayer->setIcon( QgsApplication::getThemeIcon( "/mActionAddOracleLayer.svg" ) );
22352221
#endif
@@ -3866,7 +3852,6 @@ void QgisApp::replaceSelectedVectorLayer( const QString& oldId, const QString& u
38663852

38673853
void QgisApp::addMssqlLayer()
38683854
{
3869-
#ifdef HAVE_MSSQL
38703855
// show the MSSQL dialog
38713856
QDialog *dbs = dynamic_cast<QDialog*>( QgsProviderRegistry::instance()->selectWidget( "mssql", this ) );
38723857
if ( !dbs )
@@ -3878,12 +3863,10 @@ void QgisApp::addMssqlLayer()
38783863
this, SLOT( addDatabaseLayers( QStringList const &, QString const & ) ) );
38793864
dbs->exec();
38803865
delete dbs;
3881-
#endif
38823866
} // QgisApp::addMssqlLayer()
38833867

38843868
void QgisApp::addDb2Layer()
38853869
{
3886-
#ifdef HAVE_DB2
38873870
// show the DB2 dialog
38883871
QgsDebugMsg( "Show dialog for DB2 " );
38893872
QDialog *dbs = dynamic_cast<QDialog*>( QgsProviderRegistry::instance()->selectWidget( "DB2", this ) );
@@ -3896,7 +3879,6 @@ void QgisApp::addDb2Layer()
38963879
this, SLOT( addDatabaseLayers( QStringList const &, QString const & ) ) );
38973880
dbs->exec();
38983881
delete dbs;
3899-
#endif
39003882
} // QgisApp::addDb2Layer()
39013883

39023884
void QgisApp::addOracleLayer()

src/app/qgisapp.h

-4
Original file line numberDiff line numberDiff line change
@@ -717,14 +717,10 @@ class APP_EXPORT QgisApp : public QMainWindow, private Ui::MainWindow
717717
void addSelectedVectorLayer( const QString& uri, const QString& layerName, const QString& provider );
718718
//! Replace the selected layer by a vector layer defined by uri, layer name, data source uri
719719
void replaceSelectedVectorLayer( const QString& oldId, const QString& uri, const QString& layerName, const QString& provider );
720-
//#ifdef HAVE_MSSQL
721720
//! Add a MSSQL layer to the map
722721
void addMssqlLayer();
723-
//#endif
724-
//#ifdef HAVE_DB2
725722
//! Add a DB2 layer to the map
726723
void addDb2Layer();
727-
//#endif
728724
//#ifdef HAVE_ORACLE
729725
//! Add a Oracle layer to the map
730726
void addOracleLayer();

0 commit comments

Comments
 (0)