Try to fix the fuzz build
authorBjørn Erik Pedersen <bjorn.erik.pedersen@gmail.com>
Sun, 28 Mar 2021 19:42:44 +0000 (21:42 +0200)
committerBjørn Erik Pedersen <bjorn.erik.pedersen@gmail.com>
Sun, 28 Mar 2021 19:42:44 +0000 (21:42 +0200)
tpl/transform/fuzz.go

index af3da9afd150d2a56f9b6d002297429a947c9933..7d3a97fd484068d9b717052cf0aa93630c75e518 100644 (file)
 package transform
 
 import (
-       "github.com/gohugoio/hugo/common/loggers"
-       "github.com/gohugoio/hugo/config"
-       "github.com/gohugoio/hugo/deps"
-       "github.com/gohugoio/hugo/helpers"
-       "github.com/gohugoio/hugo/hugofs"
-       "github.com/gohugoio/hugo/langs"
-       "github.com/spf13/afero"
        "github.com/spf13/viper"
 )
 
-type tstNoStringer struct{}
-
-func newDeps(cfg config.Provider) *deps.Deps {
-       cfg.Set("contentDir", "content")
-       cfg.Set("i18nDir", "i18n")
-
-       l := langs.NewLanguage("en", cfg)
-
-       cs, _ := helpers.NewContentSpec(l, loggers.NewErrorLogger(), afero.NewMemMapFs())
-
-       return &deps.Deps{
-               Cfg:         cfg,
-               Fs:          hugofs.NewMem(l),
-               ContentSpec: cs,
-       }
-}
-
 func FuzzMarkdownify(data []byte) int {
        v := viper.New()
        v.Set("contentDir", "content")