mirror of
https://github.com/gohugoio/hugo.git
synced 2025-08-18 21:11:19 +02:00
config: Remove unused code
This commit is contained in:
committed by
Bjørn Erik Pedersen
parent
ee438606dd
commit
34dcac53bf
@@ -15,7 +15,6 @@ package config
|
|||||||
|
|
||||||
import (
|
import (
|
||||||
"fmt"
|
"fmt"
|
||||||
"sort"
|
|
||||||
"strings"
|
"strings"
|
||||||
"sync"
|
"sync"
|
||||||
|
|
||||||
@@ -26,42 +25,6 @@ import (
|
|||||||
"github.com/gohugoio/hugo/common/maps"
|
"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.
|
// New creates a Provider backed by an empty maps.Params.
|
||||||
func New() Provider {
|
func New() Provider {
|
||||||
return &defaultConfigProvider{
|
return &defaultConfigProvider{
|
||||||
|
Reference in New Issue
Block a user