]> git.maquefel.me Git - brevno-suite/hugo/commitdiff
config: Remove unused code
authorJoe Mooring <joe.mooring@veriphor.com>
Thu, 13 Feb 2025 06:02:49 +0000 (22:02 -0800)
committerBjørn Erik Pedersen <bjorn.erik.pedersen@gmail.com>
Thu, 13 Feb 2025 07:40:49 +0000 (08:40 +0100)
config/defaultConfigProvider.go

index f840c6cb0551ed29bd5afe8f5445f221f4e9994f..bb7c47412c742557da2a96491348797e13cf20a0 100644 (file)
@@ -15,7 +15,6 @@ package config
 
 import (
        "fmt"
-       "sort"
        "strings"
        "sync"
 
@@ -26,42 +25,6 @@ import (
        "github.com/gohugoio/hugo/common/maps"
 )
 
-var (
-
-       // ConfigRootKeysSet contains all of the config map root keys.
-       ConfigRootKeysSet = map[string]bool{
-               "build":         true,
-               "caches":        true,
-               "cascade":       true,
-               "frontmatter":   true,
-               "languages":     true,
-               "imaging":       true,
-               "markup":        true,
-               "mediatypes":    true,
-               "menus":         true,
-               "minify":        true,
-               "module":        true,
-               "outputformats": true,
-               "params":        true,
-               "permalinks":    true,
-               "related":       true,
-               "sitemap":       true,
-               "privacy":       true,
-               "security":      true,
-               "taxonomies":    true,
-       }
-
-       // ConfigRootKeys is a sorted version of ConfigRootKeysSet.
-       ConfigRootKeys []string
-)
-
-func init() {
-       for k := range ConfigRootKeysSet {
-               ConfigRootKeys = append(ConfigRootKeys, k)
-       }
-       sort.Strings(ConfigRootKeys)
-}
-
 // New creates a Provider backed by an empty maps.Params.
 func New() Provider {
        return &defaultConfigProvider{