def METHOD_NAME(self, entry, value_pattern=''):
    """Remove an entry from the current buffer."""
    regexp = r'{}\s*\([^()]*{}[^()]*\)[^\n]*\n'.format(entry,
                                                       value_pattern)
    regexp = re.compile(regexp, re.MULTILINE)
    (self.cfile, nsubs) = re.subn(regexp, '', self.cfile, count=1)
    return nsubs