aboutsummaryrefslogtreecommitdiffhomepage
path: root/hugolib/page__new.go
diff options
context:
space:
mode:
authorBjørn Erik Pedersen <[email protected]>2022-01-24 11:15:54 +0100
committerBjørn Erik Pedersen <[email protected]>2022-02-14 13:24:36 +0100
commit9563c7d13b157612b01a9d108c134c407126b328 (patch)
tree0965acb11716c0693be0fa78193e3a88bdb2ce15 /hugolib/page__new.go
parentc707b71cdf343b8e19b8682a67aa90fee1d21c3f (diff)
downloadhugo-9563c7d13b157612b01a9d108c134c407126b328.tar.gz
hugo-9563c7d13b157612b01a9d108c134c407126b328.zip
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/page__new.go')
-rw-r--r--hugolib/page__new.go10
1 files changed, 0 insertions, 10 deletions
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