

def __clean_history(self, project_name):
    self.debug(('Cleaning the "%s" history' % project_name))
    if (project_name not in self.history):
        sublime.status_message('This project does not have any history')
        return
    for history_type in ('opened', 'closed'):
        for node in reversed(self.history[project_name][history_type]):
            if (not os.path.exists(node['filename'])):
                self.debug(('Removing non-existent file from project "%s": %s' % (project_name, node['filename'])))
                self.history[project_name][history_type].remove(node)
    sublime.status_message('File history cleaned')

dataset/ETHPy150Open FichteFoll/FileHistory/file_history.py FileHistory.__clean_history/original