diff options
author | Bjørn Erik Pedersen <bjorn.erik.pedersen@gmail.com> | 2018-01-25 09:58:55 +0100 |
---|---|---|
committer | Bjørn Erik Pedersen <bjorn.erik.pedersen@gmail.com> | 2018-01-25 10:22:11 +0100 |
commit | d418c2c2eacdc1dc6fffe839e0a90600867878ca (patch) | |
tree | 11aef5526f07824d4d1d498e9d79d21d0ef84542 /hugolib/page.go | |
parent | b2fcbb1f9774aa1e929b8575c0e1ac366ab2fb73 (diff) |
Remove and update deprecation status
Diffstat (limited to 'hugolib/page.go')
-rw-r--r-- | hugolib/page.go | 12 |
1 files changed, 0 insertions, 12 deletions
diff --git a/hugolib/page.go b/hugolib/page.go index 4df681661..b4ec96565 100644 --- a/hugolib/page.go +++ b/hugolib/page.go @@ -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 } |