aboutsummaryrefslogtreecommitdiffhomepage
path: root/hugolib/hugo_sites.go
diff options
context:
space:
mode:
authorBjørn Erik Pedersen <[email protected]>2023-12-18 17:41:15 +0100
committerBjørn Erik Pedersen <[email protected]>2023-12-18 19:51:26 +0100
commit8adba648cc130a97d2c814c65aa8396044c251fd (patch)
tree95415853e28ee83e0342cc55944f3bc16d746f4f /hugolib/hugo_sites.go
parent6f13430d4a3b0d8b196f13958fbfb6478be1f3aa (diff)
downloadhugo-8adba648cc130a97d2c814c65aa8396044c251fd.tar.gz
hugo-8adba648cc130a97d2c814c65aa8396044c251fd.zip
all: Remove unused code
Using x/tools/cmd/deadcode
Diffstat (limited to 'hugolib/hugo_sites.go')
-rw-r--r--hugolib/hugo_sites.go17
1 files changed, 0 insertions, 17 deletions
diff --git a/hugolib/hugo_sites.go b/hugolib/hugo_sites.go
index eb0385cda..f3f5c3eb2 100644
--- a/hugolib/hugo_sites.go
+++ b/hugolib/hugo_sites.go
@@ -50,7 +50,6 @@ import (
"github.com/gohugoio/hugo/resources/kinds"
"github.com/gohugoio/hugo/resources/page"
"github.com/gohugoio/hugo/resources/page/pagemeta"
- "github.com/gohugoio/hugo/tpl"
)
// HugoSites represents the sites to build. Each site represents a language.
@@ -319,21 +318,6 @@ func (h *HugoSites) loadGitInfo() error {
return nil
}
-func (s *Site) withSiteTemplates(withTemplates ...func(templ tpl.TemplateManager) error) func(templ tpl.TemplateManager) error {
- return func(templ tpl.TemplateManager) error {
- for _, wt := range withTemplates {
- if wt == nil {
- continue
- }
- if err := wt(templ); err != nil {
- return err
- }
- }
-
- return nil
- }
-}
-
// Reset resets the sites and template caches etc., making it ready for a full rebuild.
func (h *HugoSites) reset(config *BuildCfg) {
if config.ResetState {
@@ -659,7 +643,6 @@ func (h *HugoSites) errWithFileContext(err error, f source.File) error {
realFilename := fim.Meta().Filename
return herrors.NewFileErrorFromFile(err, realFilename, h.SourceSpec.Fs.Source, nil)
-
}
func (h *HugoSites) readData(f source.File) (any, error) {