diff options
author | Christian Kandeler <christian.kandeler@qt.io> | 2024-02-27 12:41:05 +0100 |
---|---|---|
committer | Christian Kandeler <christian.kandeler@qt.io> | 2024-03-11 08:18:56 +0000 |
commit | 8295f11576285166ad6b284a7718f492f7c1c864 (patch) | |
tree | b8b0c35087512d49aebd9d29d313859f05977b65 /src/plugins/cppeditor | |
parent | 71e6916b37ed2dd269c97197d0a6d5bb43402882 (diff) |
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: <github-actions-qt-creator@cristianadam.eu>
Reviewed-by: David Schulz <david.schulz@qt.io>
Diffstat (limited to 'src/plugins/cppeditor')
-rw-r--r-- | src/plugins/cppeditor/cppindexingsupport.cpp | 3 |
1 files changed, 0 insertions, 3 deletions
diff --git a/src/plugins/cppeditor/cppindexingsupport.cpp b/src/plugins/cppeditor/cppindexingsupport.cpp index 3a418a5b78..14ce23c79a 100644 --- a/src/plugins/cppeditor/cppindexingsupport.cpp +++ b/src/plugins/cppeditor/cppindexingsupport.cpp @@ -44,7 +44,6 @@ public: ProjectExplorer::HeaderPaths headerPaths; WorkingCopy workingCopy; QSet<QString> sourceFiles; - int indexerFileSizeLimitInMb = -1; }; class WriteTaskFileForDiagnostics @@ -161,7 +160,6 @@ static void indexFindErrors(QPromise<void> &promise, const ParseParams params) static void index(QPromise<void> &promise, const ParseParams params) { QScopedPointer<Internal::CppSourceProcessor> sourceProcessor(CppModelManager::createSourceProcessor()); - sourceProcessor->setFileSizeLimitInMb(params.indexerFileSizeLimitInMb); sourceProcessor->setHeaderPaths(params.headerPaths); sourceProcessor->setWorkingCopy(params.workingCopy); @@ -305,7 +303,6 @@ QFuture<void> CppIndexingSupport::refreshSourceFiles(const QSet<QString> &source CppModelManager::ProgressNotificationMode mode) { ParseParams params; - params.indexerFileSizeLimitInMb = indexerFileSizeLimitInMb(); params.headerPaths = CppModelManager::headerPaths(); params.workingCopy = CppModelManager::workingCopy(); params.sourceFiles = sourceFiles; |