From 50a0c95a823dcfa105e4035ffd42e473ef91ec3f Mon Sep 17 00:00:00 2001 From: Mikaƫl Capelle Date: Wed, 30 Dec 2020 15:04:06 +0100 Subject: Remove unused method. --- src/modlist.cpp | 17 ----------------- src/modlist.h | 5 ----- 2 files changed, 22 deletions(-) (limited to 'src') 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(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 // -- cgit v1.3.1