shithub: hugo

Download patch

ref: 04a4a193a9d919d03252d3208703976e55ad7352
parent: 4b3ca38b2e8aa07f6fecbba0cc150b1fab9227e3
author: Bjørn Erik Pedersen <[email protected]>
date: Fri Feb 17 12:20:46 EST 2017

hugolib: Remove deprecated marked for removal

Fixes #3029

--- a/hugolib/page.go
+++ b/hugolib/page.go
@@ -242,25 +242,6 @@
 	Weight         int
 }
 
-func (*PageMeta) WordCount() int {
-	// Remove in Hugo 0.19
-	helpers.Deprecated("PageMeta", "WordCount", "Use .WordCount (on Page)", true)
-	return 0
-}
-
-func (*PageMeta) FuzzyWordCount() int {
-	// Remove in Hugo 0.19
-	helpers.Deprecated("PageMeta", "FuzzyWordCount", "Use .FuzzyWordCount (on Page)", true)
-	return 0
-
-}
-
-func (*PageMeta) ReadingTime() int {
-	// Remove in Hugo 0.19
-	helpers.Deprecated("PageMeta", "ReadingTime", "Use .ReadingTime (on Page)", true)
-	return 0
-}
-
 type Position struct {
 	Prev          *Page
 	Next          *Page
--- a/hugolib/site.go
+++ b/hugolib/site.go
@@ -302,6 +302,7 @@
 
 // GetParam gets a site parameter value if found, nil if not.
 func (s *SiteInfo) GetParam(key string) interface{} {
+	// Remove in Hugo 0.20
 	helpers.Deprecated("SiteInfo", ".GetParam", "Use .Param", true)
 	v := s.Params[strings.ToLower(key)]