diff options
Diffstat (limited to 'hugolib/site.go')
-rw-r--r-- | hugolib/site.go | 58 |
1 files changed, 0 insertions, 58 deletions
diff --git a/hugolib/site.go b/hugolib/site.go index 208edc9e9..0dbf84a07 100644 --- a/hugolib/site.go +++ b/hugolib/site.go @@ -398,7 +398,6 @@ type siteBuilderCfg struct { language *helpers.Language s *Site pageCollections *PageCollections - baseURL string } // TODO(bep) get rid of this @@ -1787,63 +1786,6 @@ func (s *Site) publish(statCounter *uint64, path string, r io.Reader) (err error return helpers.WriteToDisk(path, r, s.Fs.Destination) } -func (s *Site) draftStats() string { - var msg string - - switch s.draftCount { - case 0: - return "0 draft content" - case 1: - msg = "1 draft rendered" - default: - msg = fmt.Sprintf("%d drafts rendered", s.draftCount) - } - - if s.Cfg.GetBool("buildDrafts") { - return fmt.Sprintf("%d of ", s.draftCount) + msg - } - - return "0 of " + msg -} - -func (s *Site) futureStats() string { - var msg string - - switch s.futureCount { - case 0: - return "0 future content" - case 1: - msg = "1 future rendered" - default: - msg = fmt.Sprintf("%d futures rendered", s.futureCount) - } - - if s.Cfg.GetBool("buildFuture") { - return fmt.Sprintf("%d of ", s.futureCount) + msg - } - - return "0 of " + msg -} - -func (s *Site) expiredStats() string { - var msg string - - switch s.expiredCount { - case 0: - return "0 expired content" - case 1: - msg = "1 expired rendered" - default: - msg = fmt.Sprintf("%d expired rendered", s.expiredCount) - } - - if s.Cfg.GetBool("buildExpired") { - return fmt.Sprintf("%d of ", s.expiredCount) + msg - } - - return "0 of " + msg -} - func getGoMaxProcs() int { if gmp := os.Getenv("GOMAXPROCS"); gmp != "" { if p, err := strconv.Atoi(gmp); err != nil { |