Skip to content

Commit b3fea0d

Browse files
Remove unused function
1 parent ed9328a commit b3fea0d

File tree

1 file changed

+0
-17
lines changed

1 file changed

+0
-17
lines changed

pylint/config/config_file_parser.py

-17
Original file line numberDiff line numberDiff line change
@@ -118,23 +118,6 @@ def __init__(self, verbose: bool, linter: PyLinter) -> None:
118118
self.verbose_mode = verbose
119119
self.linter = linter
120120

121-
def _parse_ini_file(self, file_path: Path) -> tuple[dict[str, str], list[str]]:
122-
"""Parse and handle errors of a ini configuration file."""
123-
return _RawConfParser.parse_ini_file(file_path)
124-
125-
@staticmethod
126-
def _ini_file_with_sections(file_path: Path) -> bool:
127-
"""Return whether the file uses sections."""
128-
return _RawConfParser._ini_file_with_sections(file_path)
129-
130-
def _parse_toml_file(self, file_path: Path) -> tuple[dict[str, str], list[str]]:
131-
"""Parse and handle errors of a toml configuration file."""
132-
try:
133-
return _RawConfParser.parse_toml_file(file_path)
134-
except tomllib.TOMLDecodeError as e:
135-
self.linter.add_message("config-parse-error", line=0, args=str(e))
136-
return {}, []
137-
138121
def parse_config_file(
139122
self, file_path: Path | None
140123
) -> tuple[dict[str, str], list[str]]:

0 commit comments

Comments
 (0)