1
0
mirror of https://github.com/golang/go synced 2024-11-24 05:00:18 -07:00

html/template: remove unused mode field on Tree struct

While I was reviewing the relevant code for parsing of the HTML syntax
that golang uses. I found that this field wasn't being used anywhere in
the code. So it's a bit useless to have this field it here. It seemed
like that this field was replaced by the non-private field `Mode` but
the old one was never removed.
This commit is contained in:
Gusted 2021-08-28 00:16:39 +02:00
parent 4d550727f8
commit 4b033f967b
No known key found for this signature in database
GPG Key ID: FD821B732837125F

View File

@ -32,7 +32,6 @@ type Tree struct {
treeSet map[string]*Tree
actionLine int // line of left delim starting action
rangeDepth int
mode Mode
}
// A mode value is a set of flags (or 0). Modes control parser behavior.