Remove and update deprecation status

This commit is contained in:
Bjørn Erik Pedersen
2018-01-25 09:58:55 +01:00
parent b2fcbb1f97
commit d418c2c2ea
11 changed files with 2 additions and 90 deletions

View File

@@ -881,12 +881,6 @@ func (p *Page) analyzePage() {
})
}
func (p *Page) Extension() string {
// Remove in Hugo 0.22.
helpers.Deprecated("Page", "Extension", "See OutputFormats with its MediaType", true)
return p.extension
}
// HasShortcode return whether the page has a shortcode with the given name.
// This method is mainly motivated with the Hugo Docs site's need for a list
// of pages with the `todo` shortcode in it.
@@ -1849,12 +1843,6 @@ func (p *Page) copy() *Page {
return &c
}
func (p *Page) Now() time.Time {
// Delete in Hugo 0.22
helpers.Deprecated("Page", "Now", "Use now (the template func)", true)
return time.Now()
}
func (p *Page) Hugo() *HugoInfo {
return hugoInfo
}