Delete useless code (currentPos)