From 153007adb99643862cb606ff14b31cec363ddbef Mon Sep 17 00:00:00 2001 From: Matt Davis Date: Sat, 27 Aug 2022 18:38:50 -0400 Subject: [PATCH] Remove no longer used method which_pip --- pipenv/core.py | 20 -------------------- 1 file changed, 20 deletions(-) diff --git a/pipenv/core.py b/pipenv/core.py index 2f0102edbb..17c1ccb0c1 100644 --- a/pipenv/core.py +++ b/pipenv/core.py @@ -1632,26 +1632,6 @@ def fallback_which(command, location=None, allow_global=False, system=False): return "" -def which_pip(project): - """Prefers to utilize the vendor'd version of pip, falls back to the location of virtualenv-installed pip.""" - - location = None - if "VIRTUAL_ENV" in os.environ: - location = os.environ["VIRTUAL_ENV"] - - pip = project._which("python", location=location) - if pip: - return pip - if not pip: - for p in ("pip", "pip3", "pip2"): - where = system_which(p) - if where: - return where - - pip = fallback_which("pip", allow_global=True, location=location) - return pip - - def format_help(help): """Formats the help string.""" help = help.replace("Options:", str(click.style("Options:", bold=True)))