From 3399a1b257e627d8d38848742329097761a8e669 Mon Sep 17 00:00:00 2001 From: Tw93 Date: Thu, 27 Nov 2025 07:29:06 +0900 Subject: [PATCH] Delete useless functions --- lib/check_health.sh | 19 ------------------- 1 file changed, 19 deletions(-) diff --git a/lib/check_health.sh b/lib/check_health.sh index 87f4607..8c1e299 100644 --- a/lib/check_health.sh +++ b/lib/check_health.sh @@ -181,25 +181,6 @@ check_swap_usage() { fi } -check_timemachine() { - # Check Time Machine backup status - if command -v tmutil > /dev/null 2>&1; then - local tm_status=$(tmutil latestbackup 2> /dev/null || echo "") - if [[ -z "$tm_status" ]]; then - echo -e " ${YELLOW}${ICON_WARNING}${NC} Time Machine No backups found" - echo -e " ${GRAY}Set up in System Settings → General → Time Machine (optional but recommended)${NC}" - else - # Get last backup time - local backup_date=$(tmutil latestbackup 2> /dev/null | xargs basename 2> /dev/null || echo "") - if [[ -n "$backup_date" ]]; then - echo -e " ${GREEN}✓${NC} Time Machine Backup active" - else - echo -e " ${YELLOW}${ICON_WARNING}${NC} Time Machine Not configured" - fi - fi - fi -} - check_brew_health() { # Check Homebrew doctor if command -v brew > /dev/null 2>&1; then