mirror of
https://github.com/gohugoio/hugo.git
synced 2025-08-15 20:44:01 +02:00
all: Remove dead code
This commit is contained in:
committed by
Bjørn Erik Pedersen
parent
766c82a6bb
commit
8fa871a05f
@@ -1012,14 +1012,6 @@ func (s *Site) absThemeDir() string {
|
||||
return helpers.AbsPathify(s.themeDir())
|
||||
}
|
||||
|
||||
func (s *Site) isThemeDirEvent(e fsnotify.Event) bool {
|
||||
return s.getThemeDir(e.Name) != ""
|
||||
}
|
||||
|
||||
func (s *Site) getThemeDir(path string) string {
|
||||
return getRealDir(s.absThemeDir(), path)
|
||||
}
|
||||
|
||||
func (s *Site) layoutDir() string {
|
||||
return viper.GetString("LayoutDir")
|
||||
}
|
||||
@@ -1768,7 +1760,6 @@ func (s *Site) newTaxonomyNode(prepare bool, t taxRenderInfo, counter int) (*Nod
|
||||
}
|
||||
|
||||
if s.Info.preserveTaxonomyNames {
|
||||
key = helpers.MakePathSanitized(key)
|
||||
// keep as is in the title
|
||||
n.Title = t.key
|
||||
} else {
|
||||
|
Reference in New Issue
Block a user