From 8295f11576285166ad6b284a7718f492f7c1c864 Mon Sep 17 00:00:00 2001 From: Christian Kandeler Date: Tue, 27 Feb 2024 12:41:05 +0100 Subject: [PATCH] CppEditor: Skip redundant check for large files The only caller of refreshSourceFiles() is updateSourceFiles(), which already does the respective filtering. Amends 1960503ae994d14d79bad6507f2ed692e5c2230d. Change-Id: Ief7b2a728138c3693276edbd1912fa59cadaf4a6 Reviewed-by: Reviewed-by: David Schulz --- src/plugins/cppeditor/cppindexingsupport.cpp | 3 --- 1 file changed, 3 deletions(-) diff --git a/src/plugins/cppeditor/cppindexingsupport.cpp b/src/plugins/cppeditor/cppindexingsupport.cpp index 3a418a5b782..14ce23c79ab 100644 --- a/src/plugins/cppeditor/cppindexingsupport.cpp +++ b/src/plugins/cppeditor/cppindexingsupport.cpp @@ -44,7 +44,6 @@ public: ProjectExplorer::HeaderPaths headerPaths; WorkingCopy workingCopy; QSet sourceFiles; - int indexerFileSizeLimitInMb = -1; }; class WriteTaskFileForDiagnostics @@ -161,7 +160,6 @@ static void indexFindErrors(QPromise &promise, const ParseParams params) static void index(QPromise &promise, const ParseParams params) { QScopedPointer sourceProcessor(CppModelManager::createSourceProcessor()); - sourceProcessor->setFileSizeLimitInMb(params.indexerFileSizeLimitInMb); sourceProcessor->setHeaderPaths(params.headerPaths); sourceProcessor->setWorkingCopy(params.workingCopy); @@ -305,7 +303,6 @@ QFuture CppIndexingSupport::refreshSourceFiles(const QSet &source CppModelManager::ProgressNotificationMode mode) { ParseParams params; - params.indexerFileSizeLimitInMb = indexerFileSizeLimitInMb(); params.headerPaths = CppModelManager::headerPaths(); params.workingCopy = CppModelManager::workingCopy(); params.sourceFiles = sourceFiles;