'Remove data for all filenames not in the list.'

def prune(self, filenames):

    new_titles = {}
    for filename in filenames:
        if (filename in self._titles):
            new_titles[filename] = self._titles[filename]
    self._titles = new_titles
    for wordnames in self._mapping.itervalues():
        wordnames.intersection_update(filenames)
