mirror of
https://github.com/PyCQA/flake8.git
synced 2026-03-29 10:36:53 +00:00
remove function made unused by off_by_default refactor
This commit is contained in:
parent
4d06caab00
commit
72a02b9fdc
1 changed files with 0 additions and 18 deletions
|
|
@ -407,24 +407,6 @@ class OptionManager:
|
|||
self.config_options_dict[name.replace("_", "-")] = option
|
||||
LOG.debug('Registered option "%s".', option)
|
||||
|
||||
def remove_from_default_ignore(self, error_codes: Sequence[str]) -> None:
|
||||
"""Remove specified error codes from the default ignore list.
|
||||
|
||||
:param error_codes:
|
||||
List of strings that are the error/warning codes to attempt to
|
||||
remove from the extended default ignore list.
|
||||
"""
|
||||
LOG.debug("Removing %r from the default ignore list", error_codes)
|
||||
for error_code in error_codes:
|
||||
try:
|
||||
self.extended_default_ignore.remove(error_code)
|
||||
except (ValueError, KeyError):
|
||||
LOG.debug(
|
||||
"Attempted to remove %s from default ignore"
|
||||
" but it was not a member of the list.",
|
||||
error_code,
|
||||
)
|
||||
|
||||
def extend_default_ignore(self, error_codes: Sequence[str]) -> None:
|
||||
"""Extend the default ignore list with the error codes provided.
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue