From ec21220c3369dfcbbd51ea4a19f20bf5443fc4f5 Mon Sep 17 00:00:00 2001 From: Vahid Haghighat Date: Sun, 1 Dec 2024 10:38:00 -0700 Subject: [PATCH] fix: Removed unused function. --- lib/helpers.sh | 18 ------------------ 1 file changed, 18 deletions(-) diff --git a/lib/helpers.sh b/lib/helpers.sh index 822469f..c031227 100755 --- a/lib/helpers.sh +++ b/lib/helpers.sh @@ -152,24 +152,6 @@ function check_dependencies() { fi; }; -function generate_regex_for_latest_allowed_stable() { - local constraint="$1" - - # Extract major, minor, patch, and optional pre-release tag - local major minor patch pre_release - IFS='.-' read -r major minor patch pre_release <<< "$constraint" - - # Start building the regex pattern - local regex="^${major}\." - regex+="(" - regex+="${minor}\.${patch}-${pre_release}" - regex+="|$(seq 0 $(($minor - 1)) | sed 's/[0-9]*/&\.[0-9]+|/g' | tr -d '\n')" - regex="${regex%|}" - regex+=")$" - - echo "$regex" -} - export -f check_dependencies; source "$TFENV_ROOT/lib/tfenv-exec.sh";