* tree: merge case1 & case2 into one routine in delete_node