hugo

Unnamed repository; edit this file 'description' to name the repository.

git clone git://git.shimmy1996.com/hugo.git
commit 04a4a193a9d919d03252d3208703976e55ad7352
parent 4b3ca38b2e8aa07f6fecbba0cc150b1fab9227e3
Author: Bjørn Erik Pedersen <bjorn.erik.pedersen@gmail.com>
Date:   Fri, 17 Feb 2017 17:20:46 +0100

hugolib: Remove deprecated marked for removal

Fixes #3029

Diffstat:
Mhugolib/page.go | 19-------------------
Mhugolib/site.go | 1+
2 files changed, 1 insertion(+), 19 deletions(-)
diff --git a/hugolib/page.go b/hugolib/page.go
@@ -242,25 +242,6 @@ type PageMeta struct {
 	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
diff --git a/hugolib/site.go b/hugolib/site.go
@@ -302,6 +302,7 @@ func (s *SiteInfo) Param(key interface{}) (interface{}, error) {
 
 // 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)]