Skip to content

Commit b579608

Browse files
lpasgmta
authored andcommitted
Meta: Remove unused function check_program_version_at_least
The function `check_program_version_at_least` was only used in `ladybird.sh`, which was removed in PR #4904.
1 parent 90525f7 commit b579608

File tree

1 file changed

+0
-18
lines changed

1 file changed

+0
-18
lines changed

Meta/shell_include.sh

Lines changed: 0 additions & 18 deletions
Original file line numberDiff line numberDiff line change
@@ -17,24 +17,6 @@ exit_if_running_as_root() {
1717
fi
1818
}
1919

20-
# Usage: check_program_version_at_least <Display Name> <Program Name> <Version String>
21-
check_program_version_at_least()
22-
{
23-
echo -n "Checking for $1 version at least $3... "
24-
if ! command -v "$2" > /dev/null 2>&1; then
25-
echo "ERROR: Cannot find $2 ($1)"
26-
return 1
27-
fi
28-
v=$("$2" --version 2>&1 | grep -E -o '[0-9]+\.[0-9\.]+[a-z]*' | head -n1)
29-
if printf '%s\n' "$3" "$v" | sort -V -c &>/dev/null; then
30-
echo "ok, found $v"
31-
return 0;
32-
else
33-
echo "ERROR: found version $v, too old!"
34-
return 1;
35-
fi
36-
}
37-
3820
get_number_of_processing_units() {
3921
number_of_processing_units="nproc"
4022
SYSTEM_NAME="$(uname -s)"

0 commit comments

Comments
 (0)