From 2e9ad3aaf7ddee35d8a3ae3a45f23f76e8da76ea Mon Sep 17 00:00:00 2001 From: Chris Hennes Date: Sat, 9 Aug 2025 10:56:04 -0500 Subject: [PATCH] Gui: Remove unused variable from fuzzyMatch() --- src/Gui/Dialogs/DlgPreferencesImp.cpp | 2 -- 1 file changed, 2 deletions(-) diff --git a/src/Gui/Dialogs/DlgPreferencesImp.cpp b/src/Gui/Dialogs/DlgPreferencesImp.cpp index bf11f16ae5..66ff27056b 100644 --- a/src/Gui/Dialogs/DlgPreferencesImp.cpp +++ b/src/Gui/Dialogs/DlgPreferencesImp.cpp @@ -1722,7 +1722,6 @@ bool PreferencesSearchController::fuzzyMatch(const QString& searchText, const QS int targetIndex = 0; int consecutiveMatches = 0; int maxConsecutive = 0; - int totalMatches = 0; int firstMatchIndex = -1; int lastMatchIndex = -1; @@ -1733,7 +1732,6 @@ bool PreferencesSearchController::fuzzyMatch(const QString& searchText, const QS } lastMatchIndex = targetIndex; searchIndex++; - totalMatches++; consecutiveMatches++; maxConsecutive = qMax(maxConsecutive, consecutiveMatches); } else {