From 7adb56afde7126b9f3b55390ea59fe5f8a1fb708 Mon Sep 17 00:00:00 2001 From: Tobias Hunger Date: Tue, 15 Sep 2015 12:19:15 +0200 Subject: [PATCH] QmlPuppet: Fix warning about unused static function Change-Id: I3a7fbc18a8fe6b208600996bfa45202389009a18 Reviewed-by: Thomas Hartmann --- .../qmlprivategate/qmlprivategate_56.cpp | 18 ------------------ 1 file changed, 18 deletions(-) diff --git a/share/qtcreator/qml/qmlpuppet/qmlprivategate/qmlprivategate_56.cpp b/share/qtcreator/qml/qmlpuppet/qmlprivategate/qmlprivategate_56.cpp index a44e3262bfa..9f811d725f0 100644 --- a/share/qtcreator/qml/qmlpuppet/qmlprivategate/qmlprivategate_56.cpp +++ b/share/qtcreator/qml/qmlpuppet/qmlprivategate/qmlprivategate_56.cpp @@ -72,24 +72,6 @@ PropertyNameList propertyNameListForWritableProperties(QObject *object, return QQuickDesignerSupportProperties::propertyNameListForWritableProperties(object, baseName, inspectedObjects); } -static void fixResourcePathsForObject(QObject *object) -{ - if (qgetenv("QMLDESIGNER_RC_PATHS").isEmpty()) - return; - - PropertyNameList propertyNameList = propertyNameListForWritableProperties(object); - - foreach (const PropertyName &propertyName, propertyNameList) { - QQmlProperty property(object, propertyName, QQmlEngine::contextForObject(object)); - - const QVariant value = property.read(); - const QVariant fixedValue = fixResourcePaths(value); - if (value != fixedValue) { - property.write(fixedValue); - } - } -} - void tweakObjects(QObject *object) { QQuickDesignerSupportItems::tweakObjects(object);