From faf99c36d29bfad629fb6ec541ccc2f61ef93443 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?J=C4=99drzej=20Nowacki?= Date: Mon, 13 Aug 2018 15:21:59 +0200 Subject: Remove unused function QQmlType::createSize was unused and it's purpose was not clear enough. Change-Id: If4ef502d0a4ea7ca53351f04ea45c2a73a2b3d22 Reviewed-by: Simon Hausmann --- src/qml/qml/qqmlmetatype.cpp | 7 ------- src/qml/qml/qqmlmetatype_p.h | 2 -- 2 files changed, 9 deletions(-) --- a/src/qml/qml/qqmltype.cpp +++ b/src/qml/qml/qqmltype.cpp @@ -537,6 +537,13 @@ QString QQmlType::noCreationReason() con return d->extraData.cd->noCreationReason; } +int QQmlType::createSize() const +{ + if (!d || d->regType != CppType) + return 0; + return d->extraData.cd->allocationSize; +} + bool QQmlType::isCreatable() const { return d && d->regType == CppType && d->extraData.cd->newFunc; --- a/src/qml/qml/qqmltype_p.h +++ b/src/qml/qml/qqmltype_p.h @@ -109,6 +109,7 @@ public: typedef void (*CreateFunc)(void *); CreateFunc createFunction() const; + int createSize() const; QQmlCustomParser *customParser() const; bool isCreatable() const;