mirror of
https://github.com/gohugoio/hugo.git
synced 2025-08-20 21:31:32 +02:00
hugolib: Remove unused code
This commit is contained in:
@@ -87,7 +87,6 @@ type Site struct {
|
||||
targets targetList
|
||||
targetListInit sync.Once
|
||||
RunMode runmode
|
||||
params map[string]interface{}
|
||||
draftCount int
|
||||
futureCount int
|
||||
Data map[string]interface{}
|
||||
@@ -769,14 +768,6 @@ func (s *Site) Render() (err error) {
|
||||
return
|
||||
}
|
||||
|
||||
func (s *Site) checkDescriptions() {
|
||||
for _, p := range s.Pages {
|
||||
if len(p.Description) < 60 {
|
||||
jww.FEEDBACK.Println(p.Source.Path() + " ")
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
func (s *Site) Initialise() (err error) {
|
||||
return s.initialize()
|
||||
}
|
||||
@@ -861,11 +852,6 @@ func (s *Site) checkDirectories() (err error) {
|
||||
return
|
||||
}
|
||||
|
||||
type pageResult struct {
|
||||
page *Page
|
||||
err error
|
||||
}
|
||||
|
||||
// ReReadFile resets file to be read from disk again
|
||||
func (s *Site) ReReadFile(absFilePath string) (*source.File, error) {
|
||||
jww.INFO.Println("rereading", absFilePath)
|
||||
|
Reference in New Issue
Block a user