'Delete expired elements from the lookup table.
Keys whose Unix timestamps are older than `const.EPOCH_GRANULARITY\' are
being removed from the lookup table.'

def prune(self):

    log.debug('Pruning    the    replay    table.')
    deleteList = []
    now = int(time.time())
    for element in self.table.iterkeys():
        if ((now - self.table[element]) > const.EPOCH_GRANULARITY):
            deleteList.append(element)
    for elem in deleteList:
        log.debug('Deleting    expired    element.')
        del self.table[elem]
