diff options
author | Mahmoud Badri <mahmoud.badri@qt.io> | 2022-07-27 20:24:44 +0300 |
---|---|---|
committer | Mahmoud Badri <mahmoud.badri@qt.io> | 2022-07-28 09:08:48 +0000 |
commit | 95a337383c5f109cc3ccda8a084c3f355bd0b6f1 (patch) | |
tree | 2b90d767e1f5ab23b0bdf6e6e73409c34396ad26 | |
parent | 1100b25432af789565ef83c095bfe22fb83b2d3c (diff) | |
download | qt-creator-95a337383c5f109cc3ccda8a084c3f355bd0b6f1.tar.gz |
QmlDesigner: Remove unused method from MaterialEditorQmlBackend
Change-Id: I319db9cdb94a100ac6c7bb9ed9a79f72cc57ca8e
Reviewed-by: <github-actions-qt-creator@cristianadam.eu>
Reviewed-by: Marco Bubke <marco.bubke@qt.io>
-rw-r--r-- | src/plugins/qmldesigner/components/materialeditor/materialeditorqmlbackend.cpp | 12 | ||||
-rw-r--r-- | src/plugins/qmldesigner/components/materialeditor/materialeditorqmlbackend.h | 1 |
2 files changed, 0 insertions, 13 deletions
diff --git a/src/plugins/qmldesigner/components/materialeditor/materialeditorqmlbackend.cpp b/src/plugins/qmldesigner/components/materialeditor/materialeditorqmlbackend.cpp index 7c5d843622..79e0e80fc5 100644 --- a/src/plugins/qmldesigner/components/materialeditor/materialeditorqmlbackend.cpp +++ b/src/plugins/qmldesigner/components/materialeditor/materialeditorqmlbackend.cpp @@ -125,18 +125,6 @@ PropertyName MaterialEditorQmlBackend::auxNamePostFix(const PropertyName &proper return propertyName + "__AUX"; } -QVariant MaterialEditorQmlBackend::properDefaultAuxiliaryProperties(const QmlObjectNode &qmlObjectNode, - const PropertyName &propertyName) -{ - const ModelNode node = qmlObjectNode.modelNode(); - const PropertyName auxName = propertyName; - - if (node.hasAuxiliaryData(auxName)) - return node.auxiliaryData(auxName); - - return {}; -} - void MaterialEditorQmlBackend::createPropertyEditorValue(const QmlObjectNode &qmlObjectNode, const PropertyName &name, const QVariant &value, diff --git a/src/plugins/qmldesigner/components/materialeditor/materialeditorqmlbackend.h b/src/plugins/qmldesigner/components/materialeditor/materialeditorqmlbackend.h index 3cfdbc9bd8..503f4a2667 100644 --- a/src/plugins/qmldesigner/components/materialeditor/materialeditorqmlbackend.h +++ b/src/plugins/qmldesigner/components/materialeditor/materialeditorqmlbackend.h @@ -79,7 +79,6 @@ private: const PropertyName &name, const QVariant &value, MaterialEditorView *materialEditor); PropertyName auxNamePostFix(const PropertyName &propertyName); - QVariant properDefaultAuxiliaryProperties(const QmlObjectNode &qmlObjectNode, const PropertyName &propertyName); QQuickWidget *m_view = nullptr; Internal::QmlAnchorBindingProxy m_backendAnchorBinding; |