Skip to content

Commit

Permalink
Merge pull request #1541 from PyCQA/unused-function
Browse files Browse the repository at this point in the history
remove function made unused by off_by_default refactor
  • Loading branch information
asottile committed Jan 24, 2022
2 parents 69eb576 + 72a02b9 commit 9de288a
Showing 1 changed file with 0 additions and 18 deletions.
18 changes: 0 additions & 18 deletions src/flake8/options/manager.py
Original file line number Diff line number Diff line change
Expand Up @@ -407,24 +407,6 @@ def add_option(self, *args: Any, **kwargs: Any) -> None:
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.
Expand Down

0 comments on commit 9de288a

Please sign in to comment.