[cvs-nhc98] patch applied (hat): Remove unused function ' flatten' .