From 17ec547737ec7b59669fb3c1f1130b410dfa9738 Mon Sep 17 00:00:00 2001 From: LuckShiba Date: Thu, 15 Jan 2026 19:40:14 -0300 Subject: [PATCH] core: remove unused function --- core/internal/utils/exec.go | 14 -------------- 1 file changed, 14 deletions(-) diff --git a/core/internal/utils/exec.go b/core/internal/utils/exec.go index c9bfafec..aa1eb319 100644 --- a/core/internal/utils/exec.go +++ b/core/internal/utils/exec.go @@ -2,7 +2,6 @@ package utils import ( "os/exec" - "strings" ) type AppChecker interface { @@ -43,16 +42,3 @@ func AnyCommandExists(cmds ...string) bool { } return false } - -func IsServiceActive(name string, userService bool) bool { - if !CommandExists("systemctl") { - return false - } - - args := []string{"is-active", name} - if userService { - args = []string{"--user", "is-active", name} - } - output, _ := exec.Command("systemctl", args...).Output() - return strings.EqualFold(strings.TrimSpace(string(output)), "active") -}