From dc12996e08035bad5f0477022fc53e9545ce033d Mon Sep 17 00:00:00 2001 From: the-sane <3657071+the-sane@users.noreply.github.com> Date: Fri, 30 May 2025 14:34:27 -0400 Subject: [PATCH] Remove unused get_file_arch function --- lug-helper.sh | 27 --------------------------- 1 file changed, 27 deletions(-) diff --git a/lug-helper.sh b/lug-helper.sh index 974f533..d587e82 100755 --- a/lug-helper.sh +++ b/lug-helper.sh @@ -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