Skip to content

Commit 79e7e8b

Browse files
committed
Remove checkdep_usetex
1 parent c6491af commit 79e7e8b

File tree

1 file changed

+0
-20
lines changed

1 file changed

+0
-20
lines changed

lib/matplotlib/__init__.py

Lines changed: 0 additions & 20 deletions
Original file line numberDiff line numberDiff line change
@@ -462,26 +462,6 @@ def impl(args, regex, min_ver=None, ignore_exit_code=False):
462462
raise ValueError(f"Unknown executable: {name!r}")
463463

464464

465-
@_api.deprecated("3.6", alternative="a vendored copy of this function")
466-
def checkdep_usetex(s):
467-
if not s:
468-
return False
469-
if not shutil.which("tex"):
470-
_log.warning("usetex mode requires TeX.")
471-
return False
472-
try:
473-
_get_executable_info("dvipng")
474-
except ExecutableNotFoundError:
475-
_log.warning("usetex mode requires dvipng.")
476-
return False
477-
try:
478-
_get_executable_info("gs")
479-
except ExecutableNotFoundError:
480-
_log.warning("usetex mode requires ghostscript.")
481-
return False
482-
return True
483-
484-
485465
def _get_xdg_config_dir():
486466
"""
487467
Return the XDG configuration directory, according to the XDG base

0 commit comments

Comments
 (0)