mirror of
https://invent.kde.org/system/dolphin
synced 2024-10-03 23:29:06 +00:00
Dolphin: Remove unused code, fix clazy warnings
This commit is contained in:
parent
f8380c50eb
commit
2aa5477ccf
|
@ -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) {
|
||||
|
|
|
@ -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;
|
||||
|
||||
|
|
|
@ -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) {
|
||||
|
|
|
@ -80,7 +80,6 @@ public:
|
|||
~KStandardItemListWidget() override;
|
||||
|
||||
void setLayout(Layout layout);
|
||||
Layout layout() const;
|
||||
|
||||
void setHighlightEntireRow(bool highlightEntireRow);
|
||||
bool highlightEntireRow() const;
|
||||
|
|
Loading…
Reference in a new issue