diff options
| -rw-r--r-- | src/modlist.cpp | 17 | ||||
| -rw-r--r-- | src/modlist.h | 5 |
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
//
|
