@@ -54,18 +54,10 @@ import (
5454
5555var cjkRe = regexp .MustCompile (`\p{Han}|\p{Hangul}|\p{Hiragana}|\p{Katakana}` )
5656
57- // Implement contentNodeI
5857func (m * pageMetaSource ) GetIdentity () identity.Identity {
5958 return m .pathInfo
6059}
6160
62- // ForEeachIdentityProvider calls cb for each Identity.
63- // If cb returns true, the iteration is terminated.
64- // The return value is whether the iteration was terminated.
65- func (m * pageMetaSource ) ForEeachIdentity (cb func (id identity.Identity ) bool ) bool {
66- return cb (m .pathInfo )
67- }
68-
6961func (m * pageMetaSource ) Path () string {
7062 return m .pathInfo .Base ()
7163}
@@ -78,12 +70,8 @@ func (m *pageMetaSource) forEeachContentNode(f func(v sitesmatrix.Vector, n cont
7870 return f (sitesmatrix.Vector {}, m )
7971}
8072
81- func (m * pageMetaSource ) resetBuildState () {
82- // Nothing to do.
83- }
84-
8573type pageMetaSource struct {
86- pathInfo * paths.Path // Always set. This the canonical path to the Page. // TODO1 remove.
74+ pathInfo * paths.Path // Always set. This the canonical path to the Page.
8775 f * source.File
8876 pi * contentParseInfo
8977 contentAdapterSourceEntryHash uint64
@@ -1075,21 +1063,6 @@ func getParam(m resource.ResourceParamsProvider, key string, stringToLower bool)
10751063 }
10761064}
10771065
1078- // Implement contentNodeI.
1079- // Note that pageMeta is just a temporary contentNode. It will be replaced in the tree with a *pageState.
1080- // TODO1 make some partial interfaces.
1081- func (m * pageMeta ) GetIdentity () identity.Identity {
1082- panic ("not supported" )
1083- }
1084-
1085- func (m * pageMeta ) ForEeachIdentity (cb func (id identity.Identity ) bool ) bool {
1086- panic ("not supported" )
1087- }
1088-
1089- func (m * pageMeta ) resetBuildState () {
1090- panic ("not supported" )
1091- }
1092-
10931066func getParamToLower (m resource.ResourceParamsProvider , key string ) any {
10941067 return getParam (m , key , true )
10951068}
0 commit comments