From 0479cdee7953877bfa362848978143826629b868 Mon Sep 17 00:00:00 2001 From: Pavel Abramov Date: Mon, 14 Oct 2024 15:53:09 +0200 Subject: [PATCH] Remove unused function stopAdam Signed-off-by: Pavel Abramov --- pkg/openevec/start.go | 10 ---------- 1 file changed, 10 deletions(-) diff --git a/pkg/openevec/start.go b/pkg/openevec/start.go index ab380f240..6d8f99aed 100644 --- a/pkg/openevec/start.go +++ b/pkg/openevec/start.go @@ -6,7 +6,6 @@ import ( "github.com/lf-edge/eden/pkg/eden" log "github.com/sirupsen/logrus" - "github.com/spf13/viper" ) func (openEVEC *OpenEVEC) StartAdam() error { @@ -28,15 +27,6 @@ func (openEVEC *OpenEVEC) StartAdam() error { return nil } -func stopAdam(_ string) error { - adamRm := viper.GetBool("adam-rm") - - if err := eden.StopAdam(adamRm); err != nil { - return fmt.Errorf("cannot stop adam: %w", err) - } - return nil -} - func (openEVEC *OpenEVEC) GetAdamStatus() (string, error) { statusAdam, err := eden.StatusAdam() if err != nil {