diff --git a/src/plugins/qmldesigner/components/navigator/navigatortreemodel.cpp b/src/plugins/qmldesigner/components/navigator/navigatortreemodel.cpp index 9dc880c099e269a0ebf1c20431f58cb451efa5c7..bd65c22dcacdb3b2f8ed6b77e36ffa3b4a25f28c 100644 --- a/src/plugins/qmldesigner/components/navigator/navigatortreemodel.cpp +++ b/src/plugins/qmldesigner/components/navigator/navigatortreemodel.cpp @@ -341,28 +341,6 @@ void NavigatorTreeModel::updateItemRow(const ModelNode &node) updateItemRow(node, itemRowForNode(node)); } -static void findTargetItem(const NodeListProperty &listProperty, - const ItemRow ¤tItemRow, - NavigatorTreeModel *navigatorTreeModel, - int *newRowNumber, - QStandardItem **targetItem) -{ - Q_UNUSED(newRowNumber); - if (navigatorTreeModel->isInTree(listProperty.parentModelNode())) { - ItemRow parentRow = navigatorTreeModel->itemRowForNode(listProperty.parentModelNode()); - if (parentRow.propertyItems.contains(listProperty.name())) { - *targetItem = parentRow.propertyItems.value(listProperty.name()); - } else { // default property - *targetItem = parentRow.idItem; -#ifndef DISABLE_VISIBLE_PROPERTIES - newRowNumber += visibleProperties(listProperty.parentModelNode()).count(); -#endif - } - } else { - *targetItem = currentItemRow.idItem->parent(); - } -} - static void handleWrongId(QStandardItem *item, const ModelNode &modelNode, const QString &errorTitle, const QString &errorMessage, NavigatorTreeModel *treeModel) { QMessageBox::warning(Core::ICore::dialogParent(), errorTitle, errorMessage); diff --git a/src/plugins/qmldesigner/components/navigator/navigatorview.cpp b/src/plugins/qmldesigner/components/navigator/navigatorview.cpp index 4e3a517adeaff09677b6c2745dc9c6c82a0dd3ca..77dcc2c1a335237a9a57b79b223adbbec102f06f 100644 --- a/src/plugins/qmldesigner/components/navigator/navigatorview.cpp +++ b/src/plugins/qmldesigner/components/navigator/navigatorview.cpp @@ -294,7 +294,7 @@ void NavigatorView::instancesToken(const QString &/*tokenName*/, int /*tokenNumb } -void NavigatorView::nodeOrderChanged(const NodeListProperty &listProperty, const ModelNode &node, int oldIndex) +void NavigatorView::nodeOrderChanged(const NodeListProperty &listProperty, const ModelNode &node, int /*oldIndex*/) { if (m_treeModel->isInTree(node)) { m_treeModel->removeSubTree(listProperty.parentModelNode());