diff options
author | Bjørn Erik Pedersen <bjorn.erik.pedersen@gmail.com> | 2022-01-24 11:15:54 +0100 |
---|---|---|
committer | Bjørn Erik Pedersen <bjorn.erik.pedersen@gmail.com> | 2022-02-14 13:24:36 +0100 |
commit | 9563c7d13b157612b01a9d108c134c407126b328 (patch) | |
tree | 0965acb11716c0693be0fa78193e3a88bdb2ce15 /hugolib | |
parent | c707b71cdf343b8e19b8682a67aa90fee1d21c3f (diff) |
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
Diffstat (limited to 'hugolib')
-rw-r--r-- | hugolib/page__common.go | 1 | ||||
-rw-r--r-- | hugolib/page__new.go | 10 |
2 files changed, 0 insertions, 11 deletions
diff --git a/hugolib/page__common.go b/hugolib/page__common.go index ccef79a3f..bf11ae7d6 100644 --- a/hugolib/page__common.go +++ b/hugolib/page__common.go @@ -78,7 +78,6 @@ type pageCommon struct { page.RefProvider page.ShortcodeInfoProvider page.SitesProvider - page.DeprecatedWarningPageMethods page.TranslationsProvider page.TreeProvider resource.LanguageProvider diff --git a/hugolib/page__new.go b/hugolib/page__new.go index 17bdb30ff..5efebe4f5 100644 --- a/hugolib/page__new.go +++ b/hugolib/page__new.go @@ -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 |