From 73c72fa6a765bcf24c7e44d2d3d45c02609ac21c Mon Sep 17 00:00:00 2001 From: hjk Date: Tue, 27 Feb 2018 11:49:49 +0100 Subject: [PATCH] QmlPuppet: Remove unused static function Change-Id: I8c439f87c30b4b4102f0839cc745120568e6f34f Reviewed-by: Thomas Hartmann --- .../qmlprivategate/qmlprivategate_56.cpp | 19 ------------------- 1 file changed, 19 deletions(-) diff --git a/share/qtcreator/qml/qmlpuppet/qmlprivategate/qmlprivategate_56.cpp b/share/qtcreator/qml/qmlpuppet/qmlprivategate/qmlprivategate_56.cpp index 35c56d02d26..2f3f4efeb37 100644 --- a/share/qtcreator/qml/qmlpuppet/qmlprivategate/qmlprivategate_56.cpp +++ b/share/qtcreator/qml/qmlpuppet/qmlprivategate/qmlprivategate_56.cpp @@ -144,25 +144,6 @@ QVariant fixResourcePaths(const QVariant &value) return value; } -static void fixResourcePathsForObject(QObject *object) -{ - if (qmlDesignerRCPath().isEmpty()) - return; - - PropertyNameList propertyNameList = propertyNameListForWritableProperties(object); - - foreach (const PropertyName &propertyName, propertyNameList) { - QQmlProperty property(object, QString::fromUtf8(propertyName), QQmlEngine::contextForObject(object)); - - const QVariant value = property.read(); - const QVariant fixedValue = fixResourcePaths(value); - if (value != fixedValue) { - property.write(fixedValue); - } - } -} - - QObject *createComponent(const QUrl &componentUrl, QQmlContext *context) { return QQuickDesignerSupportItems::createComponent(componentUrl, context);