summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorMikaël Capelle <capelle.mikael@gmail.com>2020-12-30 15:04:06 +0100
committerMikaël Capelle <capelle.mikael@gmail.com>2021-01-02 15:38:17 +0100
commit50a0c95a823dcfa105e4035ffd42e473ef91ec3f (patch)
treece27bea9ef7c4bbed19f70f9ea0551a9b5945aa3 /src
parent229033f2d66cf52ce6c447bffd968f0bb8a17b64 (diff)
Remove unused method.
Diffstat (limited to 'src')
-rw-r--r--src/modlist.cpp17
-rw-r--r--src/modlist.h5
2 files changed, 0 insertions, 22 deletions
diff --git a/src/modlist.cpp b/src/modlist.cpp
index 608a26b4..dc80bb53 100644
--- a/src/modlist.cpp
+++ b/src/modlist.cpp
@@ -1493,23 +1493,6 @@ QString ModList::getColumnToolTip(int column) const
}
}
-QModelIndex ModList::indexToProxy(QAbstractItemModel* proxyModel, const QModelIndex& index)
-{
- if (!proxyModel) {
- return QModelIndex();
- }
-
- if (proxyModel == this) {
- return index;
- }
-
- if (auto* proxy = qobject_cast<QAbstractProxyModel*>(proxyModel)) {
- return proxy->mapFromSource(indexToProxy(proxy->sourceModel(), index));
- }
-
- return QModelIndex();
-}
-
void ModList::shiftMods(const QModelIndexList& indices, int offset)
{
// retrieve the mod index and sort them by priority to avoid issue
diff --git a/src/modlist.h b/src/modlist.h
index 913d2ea8..405d9e39 100644
--- a/src/modlist.h
+++ b/src/modlist.h
@@ -365,11 +365,6 @@ private:
private:
- // convert an index of the modlist to an index for the given model, assuming
- // the given model is a proxy (of a proxy (of... )) the modlist
- //
- QModelIndex indexToProxy(QAbstractItemModel* proxyModel, const QModelIndex& index);
-
// retrieve the relative path of file and its origin given a URL from Mime data
// returns an empty optional if the URL is not a valid file for dropping
//