From 95a337383c5f109cc3ccda8a084c3f355bd0b6f1 Mon Sep 17 00:00:00 2001 From: Mahmoud Badri Date: Wed, 27 Jul 2022 20:24:44 +0300 Subject: [PATCH] QmlDesigner: Remove unused method from MaterialEditorQmlBackend Change-Id: I319db9cdb94a100ac6c7bb9ed9a79f72cc57ca8e Reviewed-by: Reviewed-by: Marco Bubke --- .../materialeditor/materialeditorqmlbackend.cpp | 12 ------------ .../materialeditor/materialeditorqmlbackend.h | 1 - 2 files changed, 13 deletions(-) diff --git a/src/plugins/qmldesigner/components/materialeditor/materialeditorqmlbackend.cpp b/src/plugins/qmldesigner/components/materialeditor/materialeditorqmlbackend.cpp index 7c5d8436226..79e0e80fc51 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 3cfdbc9bd88..503f4a2667c 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;