'Removes an item from the recent items list'

def remove_recent(self, path):

    try:
        index = [recent.get(u'path', u'') for recent in self.recent].index(path)
    except ValueError:
        return
    try:
        self.recent.pop(index)
    except IndexError:
        return
