parameters: (rootPath)
docstring: remove useless file in ut_file_map.json
docstring_summary: remove useless file in ut_file_map.json
docstring_tokens: remove useless file in ut_file_map . json
function: def remove_useless_file(rootPath):
      """remove useless file in ut_file_map.json"""
      all_file_paddle_list = get_all_paddle_file(rootPath)
      ut_file_map_new = {}
      ut_file_map = "%s/build/ut_file_map.json" % rootPath
      with open(ut_file_map, 'r') as load_f:
          load_dict = json.load(load_f)
      for key in load_dict:
          if key in all_file_paddle_list:
              ut_file_map_new[key] = load_dict[key]
  
      with open("%s/build/ut_file_map.json" % rootPath, "w") as f:
          json.dump(ut_file_map_new, f, indent=4)
          print("remove_useless_file ut_file_map success!!")
function_tokens: def remove_useless_file ( rootPath ) : all_file_paddle_list = get_all_paddle_file ( rootPath ) ut_file_map_new = { } ut_file_map = "%s/build/ut_file_map.json" % rootPath with open ( ut_file_map , 'r' ) as load_f : load_dict = json . load ( load_f ) for key in load_dict : if key in all_file_paddle_list : ut_file_map_new [ key ] = load_dict [ key ] with open ( "%s/build/ut_file_map.json" % rootPath , "w" ) as f : json . dump ( ut_file_map_new , f , indent = 4 ) print ( "remove_useless_file ut_file_map success!!" )