[Refactor] Remove unused dead code (#33718)

Signed-off-by: yewentao256 <zhyanwentao@126.com>
This commit is contained in:
Wentao Ye
2026-02-04 00:25:11 -05:00
committed by GitHub
parent eb5ed20743
commit 5e1e0a0fbd
3 changed files with 0 additions and 77 deletions

View File

@@ -146,14 +146,6 @@ def run_and_parse_first_match(run_lambda, command, regex):
return match.group(1)
def run_and_return_first_line(run_lambda, command):
"""Run command using run_lambda and returns first line if output is not empty."""
rc, out, _ = run_lambda(command)
if rc != 0:
return None
return out.split("\n")[0]
def get_conda_packages(run_lambda, patterns=None):
if patterns is None:
patterns = DEFAULT_CONDA_PATTERNS