From 46f8a90371b0f3bfcdeb1c1dfe80df8cf8f83aa3 Mon Sep 17 00:00:00 2001 From: Marco Martin Date: Sat, 11 Apr 2015 12:44:55 +0200 Subject: [PATCH] remove dead code --- containments/homescreen/contents/ui/main.qml | 18 ------------------ 1 file changed, 18 deletions(-) diff --git a/containments/homescreen/contents/ui/main.qml b/containments/homescreen/contents/ui/main.qml index a00c26eb..78febd21 100644 --- a/containments/homescreen/contents/ui/main.qml +++ b/containments/homescreen/contents/ui/main.qml @@ -314,25 +314,7 @@ MouseEventListener { z: 999 property int xTarget property int yTarget - function updateRow() { - if (!applicationsView.dragData) { - return; - } - - var pos = root.mapToItem(applicationsView.contentItem, x, y); - //in favorites area? - if (applicationsView.headerItem.favoritesStrip.contains(root.mapToItem(applicationsView.headerItem.favoritesStrip, x, y))) { - pos.y = 1; - } - - var newRow = (Math.round(applicationsView.width / applicationsView.cellWidth) * Math.round(pos.y / applicationsView.cellHeight) + Math.round(pos.x / applicationsView.cellWidth)); - - if (applicationsView.dragData.ApplicationOriginalRowRole != newRow) { - appListModel.moveItem(applicationsView.dragData.ApplicationOriginalRowRole, newRow); - applicationsView.dragData.ApplicationOriginalRowRole = newRow; - } - } Behavior on opacity { ParallelAnimation { OpacityAnimator {