hugolib: Remove deprecated marked for removal

Fixes #3029
This commit is contained in:
Bjørn Erik Pedersen 2017-02-17 17:20:46 +01:00
parent 4b3ca38b2e
commit 04a4a193a9
2 changed files with 1 additions and 19 deletions

View file

@ -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

View file

@ -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)]