Remove unused functions

You can just use mapToItem(null, 0, 0)
This commit is contained in:
Kai Uwe Broulik 2017-09-18 15:12:45 +02:00
parent 7482bef085
commit c707f6074c

View File

@ -55,33 +55,3 @@ function findParent(child, propertyName) {
next = next.parent
return next
}
function sceneX(item) {
// Binding may cause that this function is evaluated even when item is undefined,
// but in that case the Binding isn't active however so we can safely return 0
var x = 0
if (item) {
x = item.x
var p = item.parent
while (p) {
x += p.x
p = p.parent
}
}
return x
}
function sceneY(item) {
// Binding may cause that this function is evaluated even when item is undefined,
// but in that case the Binding isn't active however so we can safely return 0
var y = 0
if (item) {
y = item.y
var p = item.parent
while (p) {
y += p.y
p = p.parent
}
}
return y
}