mirror of
https://github.com/gohugoio/hugo.git
synced 2025-08-21 21:35:28 +02:00
hugolib: Remove unused code
This commit is contained in:
@@ -73,7 +73,6 @@ type Page struct {
|
||||
plain string // TODO should be []byte
|
||||
plainWords []string
|
||||
plainInit sync.Once
|
||||
plainSecondaryInit sync.Once
|
||||
renderingConfig *helpers.Blackfriday
|
||||
renderingConfigInit sync.Once
|
||||
pageMenus PageMenus
|
||||
@@ -813,10 +812,6 @@ func (p *Page) guessMarkupType() string {
|
||||
return helpers.GuessType(p.Source.Ext())
|
||||
}
|
||||
|
||||
func (p *Page) detectFrontMatter() (f *parser.FrontmatterType) {
|
||||
return parser.DetectFrontMatter(rune(p.frontmatter[0]))
|
||||
}
|
||||
|
||||
func (p *Page) parse(reader io.Reader) error {
|
||||
psr, err := parser.ReadFrom(reader)
|
||||
if err != nil {
|
||||
|
Reference in New Issue
Block a user