]> cloud.milkyroute.net Git - dolphin.git/commitdiff
Drop dead code
authorElvis Angelaccio <elvis.angelaccio@kde.org>
Sat, 3 Feb 2018 22:34:45 +0000 (23:34 +0100)
committerElvis Angelaccio <elvis.angelaccio@kde.org>
Sat, 3 Feb 2018 22:34:45 +0000 (23:34 +0100)
Spotted by clazy (-Wclazy-const-signal-or-slot).

This was added in abf17941f7, but it became dead code after the KF5 port
(possibly after c725848709).

src/dolphinmainwindow.h

index 01746169bd16de848e6e161fd48eff17e2fc19db..e81793b0f23e052cd64a60e3102b0228f9a25632 100644 (file)
@@ -60,7 +60,6 @@ class DolphinMainWindow: public KXmlGuiWindow
 {
     Q_OBJECT
     Q_CLASSINFO("D-Bus Interface", "org.kde.dolphin.MainWindow")
 {
     Q_OBJECT
     Q_CLASSINFO("D-Bus Interface", "org.kde.dolphin.MainWindow")
-    Q_PROPERTY(int id READ getId SCRIPTABLE true)
 
 public:
     DolphinMainWindow();
 
 public:
     DolphinMainWindow();
@@ -104,11 +103,6 @@ public slots:
      */
     void pasteIntoFolder();
 
      */
     void pasteIntoFolder();
 
-    /**
-     * Returns the main window ID used through DBus.
-     */
-    int getId() const;
-
     /**
      * Implementation of the MainWindowAdaptor/QDBusAbstractAdaptor interface.
      * Inform all affected dolphin components (panels, views) of an URL
     /**
      * Implementation of the MainWindowAdaptor/QDBusAbstractAdaptor interface.
      * Inform all affected dolphin components (panels, views) of an URL
@@ -512,7 +506,6 @@ private:
     KNewFileMenu* m_newFileMenu;
     DolphinTabWidget* m_tabWidget;
     DolphinViewContainer* m_activeViewContainer;
     KNewFileMenu* m_newFileMenu;
     DolphinTabWidget* m_tabWidget;
     DolphinViewContainer* m_activeViewContainer;
-    int m_id;
 
     DolphinViewActionHandler* m_actionHandler;
     DolphinRemoteEncoding* m_remoteEncoding;
 
     DolphinViewActionHandler* m_actionHandler;
     DolphinRemoteEncoding* m_remoteEncoding;
@@ -541,10 +534,5 @@ inline KNewFileMenu* DolphinMainWindow::newFileMenu() const
     return m_newFileMenu;
 }
 
     return m_newFileMenu;
 }
 
-inline int DolphinMainWindow::getId() const
-{
-    return m_id;
-}
-
 #endif // DOLPHIN_MAINWINDOW_H
 
 #endif // DOLPHIN_MAINWINDOW_H