From 1dde86a70e63dc9ed94a5579c61ebb7d7d887a33 Mon Sep 17 00:00:00 2001 From: Nyall Dawson Date: Mon, 16 Dec 2019 11:41:33 +1000 Subject: [PATCH] Remove some unused/empty code --- src/app/qgsprojectproperties.cpp | 14 -------------- src/app/qgsprojectproperties.h | 15 --------------- 2 files changed, 29 deletions(-) diff --git a/src/app/qgsprojectproperties.cpp b/src/app/qgsprojectproperties.cpp index 8536f961cf0..18e26e58002 100644 --- a/src/app/qgsprojectproperties.cpp +++ b/src/app/qgsprojectproperties.cpp @@ -948,18 +948,12 @@ QgsProjectProperties::QgsProjectProperties( QgsMapCanvas *mapCanvas, QWidget *pa projectionSelectorInitialized(); restoreOptionsBaseUi(); - restoreState(); #ifdef QGISDEBUG checkPageWidgetNameMap(); #endif } -QgsProjectProperties::~QgsProjectProperties() -{ - saveState(); -} - QString QgsProjectProperties::title() const { return titleEdit->text(); @@ -1704,14 +1698,6 @@ void QgsProjectProperties::srIdUpdated() } } -void QgsProjectProperties::saveState() -{ -} - -void QgsProjectProperties::restoreState() -{ -} - void QgsProjectProperties::pbnWMSExtCanvas_clicked() { QgsRectangle ext = mMapCanvas->extent(); diff --git a/src/app/qgsprojectproperties.h b/src/app/qgsprojectproperties.h index 4ac5290a0bd..0d614e1fedf 100644 --- a/src/app/qgsprojectproperties.h +++ b/src/app/qgsprojectproperties.h @@ -51,17 +51,12 @@ class APP_EXPORT QgsProjectProperties : public QgsOptionsDialogBase, private Ui: void setCurrentPage( const QString & ); - ~QgsProjectProperties() override; - /** Every project has a title */ QString title() const; void title( QString const &title ); - //! Returns the projection as a WKT string - QString projectionWkt(); - public slots: /** @@ -212,16 +207,6 @@ class APP_EXPORT QgsProjectProperties : public QgsOptionsDialogBase, private Ui: void populateStyles(); void editSymbol( QComboBox *cbo ); - /** - * Function to save non-base dialog states - */ - void saveState(); - - /** - * Function to restore non-base dialog states - */ - void restoreState(); - /** * Reset the Python macros */