diff options
author | Fabian Kosmale <fabian.kosmale@qt.io> | 2020-11-25 11:13:42 +0100 |
---|---|---|
committer | Fabian Kosmale <fabian.kosmale@qt.io> | 2020-12-03 10:38:43 +0100 |
commit | 35296f7037d38dd825c4add4fdbb510ae785dd89 (patch) | |
tree | 8446f7fa19522c02c8f5944f355b59f39f24ac70 | |
parent | 77c02343e2c86bd80994882d709fe12f745705ba (diff) |
QQmlPropertyCache: Remove unused copyAndAppend overload
Original-patch-by: Lars Knoll <lars.knoll@qt.io>
Task-number: QTBUG-88765
Change-Id: I85dad61a1c3ade29137be9870ce8af726be81a28
Reviewed-by: Ulf Hermann <ulf.hermann@qt.io>
-rw-r--r-- | src/qml/qml/qqmlpropertycache.cpp | 9 | ||||
-rw-r--r-- | src/qml/qml/qqmlpropertycache_p.h | 4 | ||||
-rw-r--r-- | tests/auto/qml/qqmlpropertycache/tst_qqmlpropertycache.cpp | 6 |
3 files changed, 3 insertions, 16 deletions
diff --git a/src/qml/qml/qqmlpropertycache.cpp b/src/qml/qml/qqmlpropertycache.cpp index 71d67272d9..f2c1027990 100644 --- a/src/qml/qml/qqmlpropertycache.cpp +++ b/src/qml/qml/qqmlpropertycache.cpp @@ -380,15 +380,6 @@ void QQmlPropertyCache::setParent(QQmlPropertyCache *newParent) QQmlPropertyCache * QQmlPropertyCache::copyAndAppend(const QMetaObject *metaObject, - QQmlPropertyData::Flags propertyFlags, - QQmlPropertyData::Flags methodFlags, - QQmlPropertyData::Flags signalFlags) -{ - return copyAndAppend(metaObject, QTypeRevision(), propertyFlags, methodFlags, signalFlags); -} - -QQmlPropertyCache * -QQmlPropertyCache::copyAndAppend(const QMetaObject *metaObject, QTypeRevision typeVersion, QQmlPropertyData::Flags propertyFlags, QQmlPropertyData::Flags methodFlags, diff --git a/src/qml/qml/qqmlpropertycache_p.h b/src/qml/qml/qqmlpropertycache_p.h index b265d339e8..e179123026 100644 --- a/src/qml/qml/qqmlpropertycache_p.h +++ b/src/qml/qml/qqmlpropertycache_p.h @@ -138,10 +138,6 @@ public: QQmlPropertyCache *copy(); - QQmlPropertyCache *copyAndAppend(const QMetaObject *, - QQmlPropertyData::Flags propertyFlags = QQmlPropertyData::Flags(), - QQmlPropertyData::Flags methodFlags = QQmlPropertyData::Flags(), - QQmlPropertyData::Flags signalFlags = QQmlPropertyData::Flags()); QQmlPropertyCache *copyAndAppend( const QMetaObject *, QTypeRevision typeVersion, QQmlPropertyData::Flags propertyFlags = QQmlPropertyData::Flags(), diff --git a/tests/auto/qml/qqmlpropertycache/tst_qqmlpropertycache.cpp b/tests/auto/qml/qqmlpropertycache/tst_qqmlpropertycache.cpp index a4c8da1da2..875a174814 100644 --- a/tests/auto/qml/qqmlpropertycache/tst_qqmlpropertycache.cpp +++ b/tests/auto/qml/qqmlpropertycache/tst_qqmlpropertycache.cpp @@ -221,7 +221,7 @@ void tst_qqmlpropertycache::propertiesDerived() QQmlRefPointer<QQmlPropertyCache> parentCache( new QQmlPropertyCache(&BaseObject::staticMetaObject), QQmlRefPointer<QQmlPropertyCache>::Adopt); - QQmlRefPointer<QQmlPropertyCache> cache(parentCache->copyAndAppend(object.metaObject()), + QQmlRefPointer<QQmlPropertyCache> cache(parentCache->copyAndAppend(object.metaObject(), QTypeRevision()), QQmlRefPointer<QQmlPropertyCache>::Adopt); QQmlPropertyData *data; @@ -302,7 +302,7 @@ void tst_qqmlpropertycache::methodsDerived() QQmlRefPointer<QQmlPropertyCache> parentCache( new QQmlPropertyCache(&BaseObject::staticMetaObject), QQmlRefPointer<QQmlPropertyCache>::Adopt); - QQmlRefPointer<QQmlPropertyCache> cache(parentCache->copyAndAppend(object.metaObject()), + QQmlRefPointer<QQmlPropertyCache> cache(parentCache->copyAndAppend(object.metaObject(), QTypeRevision {}), QQmlRefPointer<QQmlPropertyCache>::Adopt); QQmlPropertyData *data; @@ -369,7 +369,7 @@ void tst_qqmlpropertycache::signalHandlersDerived() QQmlRefPointer<QQmlPropertyCache> parentCache( new QQmlPropertyCache(&BaseObject::staticMetaObject), QQmlRefPointer<QQmlPropertyCache>::Adopt); - QQmlRefPointer<QQmlPropertyCache> cache(parentCache->copyAndAppend(object.metaObject()), + QQmlRefPointer<QQmlPropertyCache> cache(parentCache->copyAndAppend(object.metaObject(), QTypeRevision{}), QQmlRefPointer<QQmlPropertyCache>::Adopt); QQmlPropertyData *data; |