removed obsolete write_intermediate_results function

removed obsolete write_intermediate_results function.