Removed obsolete code
PLAT-689 #time 1m
Removed an obsolete condition (fileSyncKey is never null)
PLAT-689 #time 1m
Simplified getGravityByXY()
PLAT-689 #time 10m