From e67793866df062affa2311da302351cf89dff02d Mon Sep 17 00:00:00 2001 From: Frank Reininghaus Date: Wed, 5 Mar 2014 08:43:58 +0100 Subject: [PATCH] Remove some unused functions REVIEW: 116562 --- dolphin/src/views/dolphinview.cpp | 10 ---------- dolphin/src/views/dolphinview.h | 14 -------------- dolphin/src/views/renamedialog.cpp | 9 --------- 3 files changed, 33 deletions(-) diff --git a/dolphin/src/views/dolphinview.cpp b/dolphin/src/views/dolphinview.cpp index 9f5f48a86b..21235e5e7c 100644 --- a/dolphin/src/views/dolphinview.cpp +++ b/dolphin/src/views/dolphinview.cpp @@ -1354,16 +1354,6 @@ void DolphinView::calculateItemCount(int& fileCount, } } -void DolphinView::showHoverInformation(const KFileItem& item) -{ - emit requestItemInfo(item); -} - -void DolphinView::clearHoverInformation() -{ - emit requestItemInfo(KFileItem()); -} - void DolphinView::slotDeleteFileFinished(KJob* job) { if (job->error() == 0) { diff --git a/dolphin/src/views/dolphinview.h b/dolphin/src/views/dolphinview.h index 3731464a35..06c09edc32 100644 --- a/dolphin/src/views/dolphinview.h +++ b/dolphin/src/views/dolphinview.h @@ -613,20 +613,6 @@ private slots: */ void updateSortFoldersFirst(bool foldersFirst); - /** - * Updates the status bar to show hover information for the - * item \a item. If currently other items are selected, - * no hover information is shown. - * @see DolphinView::clearHoverInformation() - */ - void showHoverInformation(const KFileItem& item); - - /** - * Clears the hover information shown in the status bar. - * @see DolphinView::showHoverInformation(). - */ - void clearHoverInformation(); - /** * Indicates in the status bar that the delete operation * of the job \a job has been finished. diff --git a/dolphin/src/views/renamedialog.cpp b/dolphin/src/views/renamedialog.cpp index d8dbd7749d..5c0ae61261 100644 --- a/dolphin/src/views/renamedialog.cpp +++ b/dolphin/src/views/renamedialog.cpp @@ -30,15 +30,6 @@ #include #include -/** - * Helper function for sorting items with qSort() in - * DolphinView::renameSelectedItems(). - */ -bool lessThan(const KFileItem& item1, const KFileItem& item2) -{ - return KStringHandler::naturalCompare(item1.name(), item2.name()) < 0; -} - RenameDialog::RenameDialog(QWidget *parent, const KFileItemList& items) : KDialog(parent), m_renameOneItem(false),