diff --git a/cmd/dkron.go b/cmd/dkron.go index 36094aef9..607dda12a 100644 --- a/cmd/dkron.go +++ b/cmd/dkron.go @@ -83,17 +83,3 @@ func initConfig() { dkron.InitLogger(viper.GetString("log-level"), config.NodeName) } - -// unmarshalTags is a utility function which takes a slice of strings in -// key=value format and returns them as a tag mapping. -func unmarshalTags(tags []string) (map[string]string, error) { - result := make(map[string]string) - for _, tag := range tags { - parts := strings.SplitN(tag, "=", 2) - if len(parts) != 2 || len(parts[0]) == 0 { - return nil, fmt.Errorf("Invalid tag: '%s'", tag) - } - result[parts[0]] = parts[1] - } - return result, nil -}