[kde-doc-english] [trojita] src/Gui: GUI: remove unused function

Jan Kundrát jkt at flaska.net
Wed Jun 5 16:02:29 UTC 2013


Git commit 577276300dcfaf69272723edc63e8866046e3536 by Jan Kundrát.
Committed on 04/06/2013 at 18:41.
Pushed by jkt into branch 'master'.

GUI: remove unused function

There's no point in having it take an extra argument -- it's always called with
m_layoutMode.

M  +2    -7    src/Gui/Window.cpp
M  +0    -1    src/Gui/Window.h

http://commits.kde.org/trojita/577276300dcfaf69272723edc63e8866046e3536

diff --git a/src/Gui/Window.cpp b/src/Gui/Window.cpp
index f4fdb63..c359d65 100644
--- a/src/Gui/Window.cpp
+++ b/src/Gui/Window.cpp
@@ -2180,11 +2180,6 @@ void MainWindow::desktopGeometryChanged()
     saveSizesAndState();
 }
 
-void MainWindow::saveSizesAndState()
-{
-    saveSizesAndState(m_layoutMode);
-}
-
 QString MainWindow::settingsKeyForLayout(const LayoutMode layout)
 {
     switch (layout) {
@@ -2199,13 +2194,13 @@ QString MainWindow::settingsKeyForLayout(const LayoutMode layout)
     return QString();
 }
 
-void MainWindow::saveSizesAndState(const LayoutMode oldMode)
+void MainWindow::saveSizesAndState()
 {
     if (m_skipSavingOfUI)
         return;
 
     QRect geometry = qApp->desktop()->availableGeometry(this);
-    QString key = settingsKeyForLayout(oldMode);
+    QString key = settingsKeyForLayout(m_layoutMode);
     if (key.isEmpty())
         return;
 
diff --git a/src/Gui/Window.h b/src/Gui/Window.h
index 698cc00..5620860 100644
--- a/src/Gui/Window.h
+++ b/src/Gui/Window.h
@@ -174,7 +174,6 @@ private slots:
     void slotLayoutCompact();
     void slotLayoutWide();
     void slotLayoutOneAtTime();
-    void saveSizesAndState(const LayoutMode oldMode);
     void saveSizesAndState();
 
     void desktopGeometryChanged();



More information about the kde-doc-english mailing list