From 43ad0d4416dcfbc0499829379ebf0897514a7d1b Mon Sep 17 00:00:00 2001 From: Juan Font Alonso Date: Fri, 19 Aug 2022 14:24:43 +0200 Subject: [PATCH] Removed unused method --- utils.go | 13 ------------- 1 file changed, 13 deletions(-) diff --git a/utils.go b/utils.go index 7727a245..e7fb13aa 100644 --- a/utils.go +++ b/utils.go @@ -135,19 +135,6 @@ func decode( return nil } -func encode( - v interface{}, - pubKey *key.MachinePublic, - privKey *key.MachinePrivate, -) ([]byte, error) { - b, err := json.Marshal(v) - if err != nil { - return nil, err - } - - return privKey.SealTo(*pubKey, b), nil -} - func (h *Headscale) getAvailableIPs() (MachineAddresses, error) { var ips MachineAddresses var err error