diff options
author | Friedemann Kleint <Friedemann.Kleint@qt.io> | 2021-09-03 10:28:13 +0200 |
---|---|---|
committer | Friedemann Kleint <Friedemann.Kleint@qt.io> | 2021-09-04 21:32:09 +0200 |
commit | 7fc31b41d21d968b692f6fc4e22dd30bdaf46679 (patch) | |
tree | cf889482a6eaa745f47258d02f7a23cbd544571f | |
parent | f0425d31701d96e8c048b889c9ca8b59e910e043 (diff) |
shiboken6: Remove unnessary check for global functions
modified-removed functions are already removed when compiling the list.
Task-number: PYSIDE-1653
Change-Id: I817986fcb2a14085a0dfb14a9bbcf4d2c0105e41
Reviewed-by: Christian Tismer <tismer@stackless.com>
-rw-r--r-- | sources/shiboken6/generator/shiboken/cppgenerator.cpp | 7 |
1 files changed, 2 insertions, 5 deletions
diff --git a/sources/shiboken6/generator/shiboken/cppgenerator.cpp b/sources/shiboken6/generator/shiboken/cppgenerator.cpp index c7b9a585c..557324ceb 100644 --- a/sources/shiboken6/generator/shiboken/cppgenerator.cpp +++ b/sources/shiboken6/generator/shiboken/cppgenerator.cpp @@ -6077,13 +6077,10 @@ bool CppGenerator::finishGeneration() const auto functionGroups = getGlobalFunctionGroups(); for (auto it = functionGroups.cbegin(), end = functionGroups.cend(); it != end; ++it) { - AbstractMetaFunctionCList overloads; - for (const auto &func : it.value()) { - if (!func->isModifiedRemoved()) { - overloads.append(func); + const AbstractMetaFunctionCList &overloads = it.value(); + for (const auto &func : overloads) { if (func->typeEntry()) includes << func->typeEntry()->include(); - } } if (overloads.isEmpty()) |