internal/godoc/dochtml/internal/render: remove DisablePermalinks
Remove the DisablePermalinks option. We never use it.
Trust: Jonathan Amsterdam
Run-TryBot: Jonathan Amsterdam
@@ -60,7 +60,6 @@ var (
type docData struct {
Elements []docElement
Headings []docElement
- DisablePermalinks bool
EnableCommandTOC bool
}
@@ -121,7 +120,6 @@ func (r *Renderer) declHTML(doc string, decl ast.Decl, extractLinks bool) (out s
out.Doc = ExecuteToHTML(r.docTmpl, docData{
Elements: els,
Headings: headings,
- DisablePermalinks: r.disablePermalinks,
EnableCommandTOC: r.enableCommandTOC,
})
}
