Commit cd522998 authored by Stefan Brüns's avatar Stefan Brüns

Remove unused functions

Summary:
showMessage() is only declared, but never defined.

includeFolders() and fetchMountPoint(url) are not used.

Depends on D27611

Reviewers: #baloo, ngraham, davidedmundson

Reviewed By: #baloo, ngraham, davidedmundson

Subscribers: plasma-devel

Tags: #plasma

Differential Revision: https://phabricator.kde.org/D27612
parent 31e823b6
......@@ -146,28 +146,6 @@ int FilteredFolderModel::rowCount(const QModelIndex& parent) const
return m_excludeList.count();
}
QStringList FilteredFolderModel::includeFolders() const
{
const QSet<QString> mountPointSet =
QSet<QString>::fromList(m_mountPoints)
- QSet<QString>::fromList(m_excludeList);
return mountPointSet.values();
}
QString FilteredFolderModel::fetchMountPoint(const QString& url) const
{
QString mountPoint;
for (const QString& mount : qAsConst(m_mountPoints)) {
if (url.startsWith(mount) && mount.size() > mountPoint.size())
mountPoint = mount;
}
return mountPoint;
}
void FilteredFolderModel::addFolder(const QString& url)
{
auto excluded = m_settings->excludedFolders();
......
......@@ -32,8 +32,6 @@ class FilteredFolderModel : public QAbstractListModel
public:
explicit FilteredFolderModel(BalooSettings *settings, QObject *parent);
QStringList includeFolders() const;
enum Roles {
Folder = Qt::UserRole + 1,
Url
......@@ -51,8 +49,6 @@ public slots:
private:
QString folderDisplayName(const QString& url) const;
QString fetchMountPoint(const QString& url) const;
void showMessage(const QString& message);
/**
* @brief Get the theme valid icon name for \p path.
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment