From 0cb7816dac3afc9b0b77674bfa8af182bde45a9a Mon Sep 17 00:00:00 2001 From: McAmner Date: Sun, 5 Jul 2026 21:36:25 +0300 Subject: [PATCH] chore(mqlaunch): remove dead run_git_screen from the launcher MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit run_git_screen was defined at the top of terminal/launchers/mqlaunch.sh but had no live caller in the launcher graph — the live implementation used by the desktop git screen lives in tools/scripts/mqlaunch_desktop.sh. Surfaced while de-layering the git concern (Step 11a); removed here as a standalone dead-code cleanup rather than laundered into a lib as if it were live. Launcher: 1479 → 1457 lines. Full selftest suite green — nothing referenced it. Co-Authored-By: Claude Opus 4.8 --- CHANGELOG.md | 8 ++++++++ terminal/launchers/mqlaunch.sh | 22 ---------------------- 2 files changed, 8 insertions(+), 22 deletions(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index a713037..6085d54 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -52,6 +52,14 @@ All notable changes to this project will be documented in this file. (`hal remember "buy milk"`) is now split on whitespace rather than kept together by the shell — quote it at the HAL level if grouping is needed. +### Removed + +* Dead `run_git_screen` in `terminal/launchers/mqlaunch.sh` — it had no live + caller in the launcher graph (the live copy lives in + `tools/scripts/mqlaunch_desktop.sh`). Surfaced while de-layering the git + concern (Step 11a); removed as a standalone cleanup rather than folded into a + refactor. + ## [1.0.0] - 2026-06-10 ### Added diff --git a/terminal/launchers/mqlaunch.sh b/terminal/launchers/mqlaunch.sh index f20d4c4..c70630ea 100755 --- a/terminal/launchers/mqlaunch.sh +++ b/terminal/launchers/mqlaunch.sh @@ -323,28 +323,6 @@ safe_run_ai() { fi } -# Runs git screen. -run_git_screen() { - local title="$1" - local cmd="$2" - - print_header - row "$title" - empty_row - row "Repo:" - row " $BASE_DIR" - empty_row - - ( - cd "$BASE_DIR" 2>/dev/null || { mq_debug "run_git_screen: cannot cd to $BASE_DIR"; exit 1; } - eval "$cmd" - ) - - echo - print_footer - pause_enter -} - # Network concern — status, diagnostics, and connectivity actions — lives in a # dedicated library (Step 11a monolith de-layering, audit P4). Sourced into this # scope so it keeps using the ambient UI helpers and $BASE_DIR; no behavior