From 426a53a50dc08a58e3c8a3105aceac5fb55f157b Mon Sep 17 00:00:00 2001 From: Mahmoud-Emad Date: Sun, 24 Aug 2025 18:10:30 +0300 Subject: [PATCH] refactor: Remove is_tmux_server_not_running_error function --- lib/osal/tmux/tmux.v | 18 ------------------ 1 file changed, 18 deletions(-) diff --git a/lib/osal/tmux/tmux.v b/lib/osal/tmux/tmux.v index b63b5a35..7d451f8b 100644 --- a/lib/osal/tmux/tmux.v +++ b/lib/osal/tmux/tmux.v @@ -7,24 +7,6 @@ import os import time import freeflowuniverse.herolib.ui.console -// Check if error message indicates tmux server is not running -fn is_tmux_server_not_running_error(error_msg string) bool { - // Common tmux server not running error patterns - tmux_not_running_patterns := [ - 'no server running', - 'error connecting to', - 'No such file or directory', // when socket doesn't exist - ] - - error_lower := error_msg.to_lower() - for pattern in tmux_not_running_patterns { - if error_lower.contains(pattern.to_lower()) { - return true - } - } - return false -} - @[heap] pub struct Tmux { pub mut: