Remove unused function transfer_childs.
Adding comments.