@@ -1732,13 +1732,6 @@ void QgisApp::createActions()
1732
1732
mActionAddPgLayer = 0 ;
1733
1733
#endif
1734
1734
1735
- #ifndef WITH_ARCGIS
1736
- delete mActionAddAfsLayer ;
1737
- mActionAddAfsLayer = 0 ;
1738
- delete mActionAddAmsLayer ;
1739
- mActionAddAmsLayer = 0 ;
1740
- #endif
1741
-
1742
1735
#ifndef HAVE_ORACLE
1743
1736
delete mActionAddOracleLayer ;
1744
1737
mActionAddOracleLayer = nullptr ;
@@ -2188,7 +2181,6 @@ void QgisApp::createToolBars()
2188
2181
newLayerAction->setObjectName ( " ActionNewLayer" );
2189
2182
connect ( bt, SIGNAL ( triggered ( QAction * ) ), this , SLOT ( toolButtonActionTriggered ( QAction * ) ) );
2190
2183
2191
- #ifdef WITH_ARCGIS
2192
2184
// map service tool button
2193
2185
bt = new QToolButton ();
2194
2186
bt->setPopupMode ( QToolButton::MenuButtonPopup );
@@ -2230,9 +2222,6 @@ void QgisApp::createToolBars()
2230
2222
mLayerToolBar ->removeAction ( mActionAddWfsLayer );
2231
2223
featureServiceAction->setObjectName ( " ActionFeatureService" );
2232
2224
connect ( bt, SIGNAL ( triggered ( QAction * ) ), this , SLOT ( toolButtonActionTriggered ( QAction * ) ) );
2233
- #else
2234
- QAction* mapServiceAction = mActionAddWmsLayer ;
2235
- #endif
2236
2225
2237
2226
// add db layer button
2238
2227
bt = new QToolButton ();
@@ -2618,10 +2607,8 @@ void QgisApp::setTheme( const QString& theThemeName )
2618
2607
mActionAddWmsLayer ->setIcon ( QgsApplication::getThemeIcon ( " /mActionAddWmsLayer.svg" ) );
2619
2608
mActionAddWcsLayer ->setIcon ( QgsApplication::getThemeIcon ( " /mActionAddWcsLayer.svg" ) );
2620
2609
mActionAddWfsLayer ->setIcon ( QgsApplication::getThemeIcon ( " /mActionAddWfsLayer.svg" ) );
2621
- #ifdef WITH_ARCGIS
2622
2610
mActionAddAfsLayer ->setIcon ( QgsApplication::getThemeIcon ( " /mActionAddAfsLayer.svg" ) );
2623
2611
mActionAddAmsLayer ->setIcon ( QgsApplication::getThemeIcon ( " /mActionAddAmsLayer.svg" ) );
2624
- #endif
2625
2612
mActionAddToOverview ->setIcon ( QgsApplication::getThemeIcon ( " /mActionInOverview.svg" ) );
2626
2613
mActionAnnotation ->setIcon ( QgsApplication::getThemeIcon ( " /mActionAnnotation.svg" ) );
2627
2614
mActionFormAnnotation ->setIcon ( QgsApplication::getThemeIcon ( " /mActionFormAnnotation.svg" ) );
0 commit comments