┌   ┐
54
└   ┘

summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorNicolas Fella <[email protected]>2019-11-25 20:54:08 +0100
committerNicolas Fella <[email protected]>2019-11-25 20:54:12 +0100
commitff9ae28445b4d8b6549003f28c2173acf9469f1b (patch)
tree972664a0e35d70321e6a560967f5e59a2fb26ced
parente0085fb2804eedfe91b05c1c0c272758466fb62f (diff)
Remove dead code
Summary: The code appears to do nothing. Test Plan: builds, bookmarkmenu still works Reviewers: #dolphin, meven, elvisangelaccio Reviewed By: #dolphin, meven, elvisangelaccio Subscribers: meven, kfm-devel Tags: #dolphin Differential Revision: https://phabricator.kde.org/D25347
-rw-r--r--src/dolphinbookmarkhandler.cpp5
-rw-r--r--src/dolphinbookmarkhandler.h3
2 files changed, 1 insertions, 7 deletions
diff --git a/src/dolphinbookmarkhandler.cpp b/src/dolphinbookmarkhandler.cpp
index bb8f641ec..ded83d6bb 100644
--- a/src/dolphinbookmarkhandler.cpp
+++ b/src/dolphinbookmarkhandler.cpp
@@ -54,11 +54,6 @@ DolphinBookmarkHandler::~DolphinBookmarkHandler()
{
}
-void DolphinBookmarkHandler::fillControlMenu(QMenu* menu, KActionCollection* collection)
-{
- m_bookmarkControlMenu.reset(new KBookmarkMenu(m_bookmarkManager, this, menu, collection));
-}
-
QString DolphinBookmarkHandler::currentTitle() const
{
return title(m_mainWindow->activeViewContainer());
diff --git a/src/dolphinbookmarkhandler.h b/src/dolphinbookmarkhandler.h
index 6fd511d80..bafef41f8 100644
--- a/src/dolphinbookmarkhandler.h
+++ b/src/dolphinbookmarkhandler.h
@@ -36,7 +36,7 @@ class DolphinBookmarkHandler : public QObject, public KBookmarkOwner
public:
DolphinBookmarkHandler(DolphinMainWindow *mainWindow, KActionCollection *collection, QMenu *menu, QObject *parent);
~DolphinBookmarkHandler() override;
- void fillControlMenu(QMenu *menu, KActionCollection *collection);
+
private:
QString currentTitle() const override;
QUrl currentUrl() const override;
@@ -55,7 +55,6 @@ private:
DolphinMainWindow* m_mainWindow;
KBookmarkManager *m_bookmarkManager;
QScopedPointer<KBookmarkMenu> m_bookmarkMenu;
- QScopedPointer<KBookmarkMenu> m_bookmarkControlMenu;
};
#endif // DOLPHINBOOKMARKHANDLER_H