From 92e63d0910e925ff061930a655f16dff236157e3 Mon Sep 17 00:00:00 2001 From: Felix Fontein Date: Sun, 2 Mar 2025 09:19:25 +0100 Subject: [PATCH] Remove dead code. Signed-off-by: Felix Fontein --- age/tui.go | 14 -------------- 1 file changed, 14 deletions(-) diff --git a/age/tui.go b/age/tui.go index 2613d6d1b..35f9f3ad7 100644 --- a/age/tui.go +++ b/age/tui.go @@ -32,20 +32,6 @@ func warningf(format string, v ...interface{}) { log.Printf("age: warning: "+format, v...) } -// If testOnlyPanicInsteadOfExit is true, exit will set testOnlyDidExit and -// panic instead of calling os.Exit. This way, the wrapper in TestMain can -// recover the panic and return the exit code only if it was originated in exit. -var testOnlyPanicInsteadOfExit bool -var testOnlyDidExit bool - -func exit(code int) { - if testOnlyPanicInsteadOfExit { - testOnlyDidExit = true - panic(code) - } - os.Exit(code) -} - // clearLine clears the current line on the terminal, or opens a new line if // terminal escape codes don't work. func clearLine(out io.Writer) {