Remove unused get_file_arch function

This commit is contained in:
the-sane 2025-05-30 14:34:27 -04:00
parent d5219c5ce7
commit dc12996e08

View File

@ -1072,33 +1072,6 @@ wine_check() {
fi
}
# Determine the architecture of a binary file
# Used for wine_check above to check the system wine
get_file_arch() {
case "$(od -An -t x1 -j 0x12 -N 1 "$1" 2>/dev/null | tr -d '[:space:]')" in
"3e")
# x86_64
echo "64bit"
;;
"03"|"06")
# i386
echo "32bit"
;;
"b7")
# aarch64
echo "64bit"
;;
"28")
# aarch32
echo "32bit"
;;
*)
# Unknown
echo ""
;;
esac
}
# Check system memory and swap space
memory_check() {
# Get totals in bytes