Removed unused method

This commit is contained in:
Juan Font Alonso 2022-08-19 14:24:43 +02:00
parent a33b5a5c00
commit 43ad0d4416

View file

@ -135,19 +135,6 @@ func decode(
return nil 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) { func (h *Headscale) getAvailableIPs() (MachineAddresses, error) {
var ips MachineAddresses var ips MachineAddresses
var err error var err error