aboutsummaryrefslogtreecommitdiffstats
path: root/sources/shiboken6/ApiExtractor/typesystemparser.cpp
diff options
context:
space:
mode:
authorFriedemann Kleint <Friedemann.Kleint@qt.io>2023-07-26 14:51:18 +0200
committerFriedemann Kleint <Friedemann.Kleint@qt.io>2023-07-26 16:39:45 +0200
commit0c4a5d24942eeeb4d2aa3a3401b01ddde480049b (patch)
treee5be15367fbdbcb56add1f596a8872b94f8e0999 /sources/shiboken6/ApiExtractor/typesystemparser.cpp
parent0a1dc494778fa5ff258f1bc8863cca750475c74e (diff)
shiboken6: Remove unused "thread" attribute of <modify-function>
Output a warning in the parser. Pick-to: 6.5 Task-number: PYSIDE-2384 Change-Id: I6aa5c527558055d8e80c8b787c11cde3cd834ef3 Reviewed-by: Cristian Maureira-Fredes <cristian.maureira-fredes@qt.io>
Diffstat (limited to 'sources/shiboken6/ApiExtractor/typesystemparser.cpp')
-rw-r--r--sources/shiboken6/ApiExtractor/typesystemparser.cpp7
1 files changed, 1 insertions, 6 deletions
diff --git a/sources/shiboken6/ApiExtractor/typesystemparser.cpp b/sources/shiboken6/ApiExtractor/typesystemparser.cpp
index f680f1cda..ab7e2ad53 100644
--- a/sources/shiboken6/ApiExtractor/typesystemparser.cpp
+++ b/sources/shiboken6/ApiExtractor/typesystemparser.cpp
@@ -2727,7 +2727,6 @@ bool TypeSystemParser::parseModifyFunction(const ConditionalStreamReader &reader
bool removed = false;
QString rename;
std::optional<bool> deprecated;
- bool isThread = false;
int overloadNumber = TypeSystem::OverloadNumberUnset;
TypeSystem::ExceptionHandling exceptionHandling = TypeSystem::ExceptionHandling::Unspecified;
TypeSystem::AllowThread allowThread = TypeSystem::AllowThread::Unspecified;
@@ -2745,9 +2744,6 @@ bool TypeSystemParser::parseModifyFunction(const ConditionalStreamReader &reader
} else if (name == deprecatedAttribute()) {
deprecated = convertBoolean(attributes->takeAt(i).value(),
deprecatedAttribute(), false);
- } else if (name == threadAttribute()) {
- isThread = convertBoolean(attributes->takeAt(i).value(),
- threadAttribute(), false);
} else if (name == allowThreadAttribute()) {
const QXmlStreamAttribute attribute = attributes->takeAt(i);
const auto allowThreadOpt = allowThreadFromAttribute(attribute.value());
@@ -2777,7 +2773,7 @@ bool TypeSystemParser::parseModifyFunction(const ConditionalStreamReader &reader
qCWarning(lcShiboken, "%s",
qPrintable(msgInvalidAttributeValue(attribute)));
}
- } else if (name == virtualSlotAttribute()) {
+ } else if (name == virtualSlotAttribute() || name == threadAttribute()) {
qCWarning(lcShiboken, "%s",
qPrintable(msgUnimplementedAttributeWarning(reader, name)));
}
@@ -2839,7 +2835,6 @@ bool TypeSystemParser::parseModifyFunction(const ConditionalStreamReader &reader
mod.setModifierFlag(FunctionModification::Rename);
}
- mod.setIsThread(isThread);
if (allowThread != TypeSystem::AllowThread::Unspecified)
mod.setAllowThread(allowThread);