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 ----------------- 1 file changed, 17 deletions(-) (limited to 'src/modlist.cpp') 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 -- cgit v1.3.1