commit:     ef9ade37dfe4371668120d03a61b11232c7c9f23
Author:     Kerin Millar <kfm <AT> plushkava <DOT> net>
AuthorDate: Tue Jun 24 10:47:04 2025 +0000
Commit:     Sam James <sam <AT> gentoo <DOT> org>
CommitDate: Sat Jun 28 02:30:04 2025 +0000
URL:        https://gitweb.gentoo.org/proj/portage.git/commit/?id=ef9ade37

isolated-functions.sh: drop the ___parallel_xargs() function

A recent commit introduced the ___parallel() function, which serves as a
portable replacement for ___parallel_xargs(). Now that the latter
function is no longer used anywhere, get rid of it.

See-also: d2ffee09c8470e1e84b5b07442536757f17130f5
Signed-off-by: Kerin Millar <kfm <AT> plushkava.net>
Signed-off-by: Sam James <sam <AT> gentoo.org>

 bin/isolated-functions.sh | 15 ---------------
 1 file changed, 15 deletions(-)

diff --git a/bin/isolated-functions.sh b/bin/isolated-functions.sh
index d0f7d4d09b..21acaffdde 100644
--- a/bin/isolated-functions.sh
+++ b/bin/isolated-functions.sh
@@ -558,21 +558,6 @@ ___parallel() (
        return "${retval}"
 )
 
-# Run ${XARGS} in parallel for detected number of CPUs, if supported.
-# Passes all arguments to xargs, and returns its exit code
-___parallel_xargs() {
-       local chunksize=1 jobs xargs=( ${XARGS} )
-
-       if "${xargs[@]}" --help | grep -q -- --max-procs=; then
-               jobs=$(___makeopts_jobs)
-               if [[ ${jobs} -gt 1 ]]; then
-                       xargs+=("--max-procs=${jobs}" -L "${chunksize}")
-               fi
-       fi
-
-       "${xargs[@]}" "${@}"
-}
-
 hasq() {
        ___eapi_has_hasq || die "'${FUNCNAME}' banned in EAPI ${EAPI}"
 

Reply via email to