From cffb7ad32f98d0fd85f11d7d5a511a02cb29a5b4 Mon Sep 17 00:00:00 2001 From: Juan Font Date: Fri, 25 Nov 2022 17:49:46 +0000 Subject: [PATCH] Remove method no longer used --- machine.go | 21 --------------------- 1 file changed, 21 deletions(-) diff --git a/machine.go b/machine.go index 1d79cd96..8826a654 100644 --- a/machine.go +++ b/machine.go @@ -1121,27 +1121,6 @@ func (h *Headscale) EnableAutoApprovedRoutes(machine *Machine) error { return nil } -func (h *Headscale) RoutesToProto(machine *Machine) *v1.Routes { - availableRoutes, err := h.GetAdvertisedRoutes(machine) - if err != nil { - log.Error().Err(err).Msg("Could not get advertised routes") - - return nil - } - - enabledRoutes, err := h.GetEnabledRoutes(machine) - if err != nil { - log.Error().Err(err).Msg("Could not get enabled routes") - - return nil - } - - return &v1.Routes{ - AdvertisedRoutes: ipPrefixToString(availableRoutes), - EnabledRoutes: ipPrefixToString(enabledRoutes), - } -} - func (h *Headscale) generateGivenName(suppliedName string, randomSuffix bool) (string, error) { normalizedHostname, err := NormalizeToFQDNRules( suppliedName,