1
0
mirror of https://invent.kde.org/system/dolphin synced 2024-07-04 17:30:55 +00:00

Dolphin: Remove unused code, fix clazy warnings

This commit is contained in:
Méven Car 2023-12-05 16:46:52 +01:00
parent f8380c50eb
commit 2aa5477ccf
4 changed files with 9 additions and 11 deletions

View File

@ -1309,7 +1309,7 @@ void DolphinMainWindow::slotWriteStateChanged(bool isFolderWritable)
void DolphinMainWindow::openContextMenu(const QPoint &pos, const KFileItem &item, const KFileItemList &selectedItems, const QUrl &url)
{
QPointer<DolphinContextMenu> contextMenu = new DolphinContextMenu(this, item, selectedItems, url, &m_fileItemActions);
contextMenu.data()->exec(pos);
contextMenu->exec(pos);
// Delete the menu, unless it has been deleted in its own nested event loop already.
if (contextMenu) {

View File

@ -88,6 +88,14 @@ public:
return m_nameFilter;
}
/**
* Don't use this. Always @returns an empty list. It only exists to silence moc.
*/
QList<QUrl> filesToSelect() const
{
return QList<QUrl>();
}
protected:
/**
* We reimplement openUrl so no need to implement openFile.
@ -214,10 +222,6 @@ private Q_SLOTS:
* Called by konqueror --select
*/
void setFilesToSelect(const QList<QUrl> &files);
QList<QUrl> filesToSelect() const
{
return QList<QUrl>();
} // silence moc
bool eventFilter(QObject *, QEvent *) override;

View File

@ -295,11 +295,6 @@ void KStandardItemListWidget::setLayout(Layout layout)
}
}
KStandardItemListWidget::Layout KStandardItemListWidget::layout() const
{
return m_layout;
}
void KStandardItemListWidget::setHighlightEntireRow(bool highlightEntireRow)
{
if (m_highlightEntireRow != highlightEntireRow) {

View File

@ -80,7 +80,6 @@ public:
~KStandardItemListWidget() override;
void setLayout(Layout layout);
Layout layout() const;
void setHighlightEntireRow(bool highlightEntireRow);
bool highlightEntireRow() const;