refactor: Remove dead code and stale references (#2137)

Remove `cleanup_stale_apps()` in `sh/e2e/lib/cleanup.sh` which was dead
code — defined but never called. The E2E orchestrator (`e2e.sh`) invokes
`cloud_cleanup_stale` directly on the active cloud driver; the wrapper
function and its file served no purpose.

Also remove the corresponding `source` call in `e2e.sh`.

Co-authored-by: spawn-qa-bot <qa@openrouter.ai>
Co-authored-by: Claude Sonnet 4.6 <noreply@anthropic.com>
Co-authored-by: L <6723574+louisgv@users.noreply.github.com>
This commit is contained in:
A 2026-03-03 08:51:59 -08:00 committed by GitHub
parent 22a06e3237
commit 83d68c6a37
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
2 changed files with 0 additions and 14 deletions

View file

@ -30,7 +30,6 @@ source "${SCRIPT_DIR}/lib/common.sh"
source "${SCRIPT_DIR}/lib/provision.sh"
source "${SCRIPT_DIR}/lib/verify.sh"
source "${SCRIPT_DIR}/lib/teardown.sh"
source "${SCRIPT_DIR}/lib/cleanup.sh"
# ---------------------------------------------------------------------------
# All supported clouds (excluding local — no infra to provision)

View file

@ -1,13 +0,0 @@
#!/bin/bash
# e2e/lib/cleanup.sh — Find and destroy stale e2e-* instances (cloud-agnostic)
set -eo pipefail
# ---------------------------------------------------------------------------
# cleanup_stale_apps
#
# Delegates to the active cloud driver's stale cleanup function.
# ---------------------------------------------------------------------------
cleanup_stale_apps() {
log_header "Cleaning up stale e2e instances (${ACTIVE_CLOUD})"
cloud_cleanup_stale
}