diff --git a/client/ui/event_handler.go b/client/ui/event_handler.go index e9b7f4f30..c0bc74a2c 100644 --- a/client/ui/event_handler.go +++ b/client/ui/event_handler.go @@ -13,7 +13,6 @@ import ( "fyne.io/systray" log "github.com/sirupsen/logrus" - "github.com/netbirdio/netbird/client/proto" "github.com/netbirdio/netbird/version" ) @@ -232,19 +231,3 @@ func (h *eventHandler) runSelfCommand(ctx context.Context, command, arg string) log.Printf("command '%s %s' completed successfully", command, arg) } - -func (h *eventHandler) logout(ctx context.Context) error { - client, err := h.client.getSrvClient(defaultFailTimeout) - if err != nil { - return fmt.Errorf("failed to get service client: %w", err) - } - - _, err = client.Logout(ctx, &proto.LogoutRequest{}) - if err != nil { - return fmt.Errorf("logout failed: %w", err) - } - - h.client.getSrvConfig() - - return nil -}