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