From: Tim Duesterhus Date: Fri, 3 Jul 2026 21:02:33 +0000 (+0200) Subject: REGTESTS: Remove unused `_version` function from `scripts/run-regtests.sh` X-Git-Tag: v3.5-dev2~9 X-Git-Url: http://git.kaiwu.me/%22data:,/static/$%7BGITURL%7D/1?a=commitdiff_plain;h=da4b7df81de993d8a5837aeb665c0b09c9072cf8;p=haproxy.git REGTESTS: Remove unused `_version` function from `scripts/run-regtests.sh` This function is no longer used since the support for `REQUIRE_VERSION` was removed in 8ee8b8a04deaa2689262715957dc72ab7fe50ccb. --- diff --git a/scripts/run-regtests.sh b/scripts/run-regtests.sh index 0e401ee0b..c3369bf69 100755 --- a/scripts/run-regtests.sh +++ b/scripts/run-regtests.sh @@ -241,15 +241,6 @@ _process() { done } -# compute a version from up to 4 sub-version components, each multiplied -# by a power of 1000, and padded left with 0, 1 or 2 zeroes. -_version() { - OLDIFS="$IFS"; IFS="."; set -- $*; IFS="$OLDIFS" - set -- ${1%%[!0-9]*} 000${2%%[!0-9]*} 000${3%%[!0-9]*} 000${4%%[!0-9]*} - prf2=${2%???}; prf3=${3%???}; prf4=${4%???} - echo ${1}${2#$prf2}${3#$prf3}${4#$prf4} -} - HAPROXY_PROGRAM="${HAPROXY_PROGRAM:-${PWD}/haproxy}" HAPROXY_ARGS="${HAPROXY_ARGS--dM -dI -dW}"