aboutsummaryrefslogtreecommitdiffstats
path: root/src/qml/qml/qqmlmetatype.cpp
diff options
context:
space:
mode:
authorFabian Kosmale <fabian.kosmale@qt.io>2021-03-05 11:44:43 +0100
committerFabian Kosmale <fabian.kosmale@qt.io>2021-03-05 15:54:57 +0100
commita4ba25117962fab13fa9d71edc252d2d1b59715c (patch)
tree7a89ab85eb5135af0054134bd1dfeee3caab473a /src/qml/qml/qqmlmetatype.cpp
parent483d09779c2719415c5ac421074a1af3bd66ca29 (diff)
Remove QQmlMetaType::isQObject
All callers do have a metatype which they can query instead. Task-number: QTBUG-82931 Change-Id: I2ff514354a43d677da963d4239333fc66a42df59 Reviewed-by: Ulf Hermann <ulf.hermann@qt.io>
Diffstat (limited to 'src/qml/qml/qqmlmetatype.cpp')
-rw-r--r--src/qml/qml/qqmlmetatype.cpp8
1 files changed, 0 insertions, 8 deletions
diff --git a/src/qml/qml/qqmlmetatype.cpp b/src/qml/qml/qqmlmetatype.cpp
index 8369634889..71abce89b1 100644
--- a/src/qml/qml/qqmlmetatype.cpp
+++ b/src/qml/qml/qqmlmetatype.cpp
@@ -1099,14 +1099,6 @@ QObject *QQmlMetaType::toQObject(const QVariant &v, bool *ok)
return *(QObject *const *)v.constData();
}
-bool QQmlMetaType::isQObject(int userType)
-{
- if (userType == QMetaType::QObjectStar)
- return true;
- QMetaType type (userType);
- return type.flags().testFlag(QMetaType::PointerToQObject);
-}
-
/*
Returns the item type for a list of type \a id.
*/