From 585bd66d132f263c29654c2532e386c5236a6159 Mon Sep 17 00:00:00 2001 From: Whispering Wind <151555003+ReturnFI@users.noreply.github.com> Date: Thu, 27 Jun 2024 15:51:47 +0330 Subject: [PATCH] Remove unused function --- menu.sh | 16 ---------------- 1 file changed, 16 deletions(-) diff --git a/menu.sh b/menu.sh index 23f78bb..f9901c2 100644 --- a/menu.sh +++ b/menu.sh @@ -184,22 +184,6 @@ traffic_status() { fi } -# Helper function to format bytes into human-readable format -format_bytes() { - bytes=$1 - if [ "$bytes" -lt 1024 ]; then - echo "${bytes}B" - elif [ "$bytes" -lt 1048576 ]; then - echo "$(bc <<< "scale=2; $bytes / 1024")KB" - elif [ "$bytes" -lt 1073741824 ]; then - echo "$(bc <<< "scale=2; $bytes / 1048576")MB" - elif [ "$bytes" -lt 1099511627776 ]; then - echo "$(bc <<< "scale=2; $bytes / 1073741824")GB" - else - echo "$(bc <<< "scale=2; $bytes / 1099511627776")TB" - fi -} - # Function to uninstall Hysteria2 uninstall_hysteria() { echo "Uninstalling Hysteria2..."