mirror of
https://github.com/gohugoio/hugo.git
synced 2025-08-29 22:29:56 +02:00
Finally remove deprecated Page methods
They have been deprecated for a very long time, first with a warning, then with an ERROR. Now they are removed. Closes #4117
This commit is contained in:
@@ -20,7 +20,6 @@ import (
|
||||
"github.com/gohugoio/hugo/common/hugo"
|
||||
|
||||
"github.com/gohugoio/hugo/common/maps"
|
||||
"github.com/gohugoio/hugo/source"
|
||||
|
||||
"github.com/gohugoio/hugo/output"
|
||||
|
||||
@@ -65,15 +64,6 @@ func newPageBase(metaProvider *pageMeta) (*pageState, error) {
|
||||
|
||||
siteAdapter := pageSiteAdapter{s: s, p: ps}
|
||||
|
||||
deprecatedWarningPage := struct {
|
||||
source.FileWithoutOverlap
|
||||
page.DeprecatedWarningPageMethods1
|
||||
}{
|
||||
FileWithoutOverlap: metaProvider.File(),
|
||||
DeprecatedWarningPageMethods1: &pageDeprecatedWarning{p: ps},
|
||||
}
|
||||
|
||||
ps.DeprecatedWarningPageMethods = page.NewDeprecatedWarningPage(deprecatedWarningPage)
|
||||
ps.pageMenus = &pageMenus{p: ps}
|
||||
ps.PageMenusProvider = ps.pageMenus
|
||||
ps.GetPageProvider = siteAdapter
|
||||
|
Reference in New Issue
Block a user