Skip to content

Commit 4b033f9

Browse files
author
Gusted
committed
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.
1 parent 4d55072 commit 4b033f9

File tree

1 file changed

+0
-1
lines changed

1 file changed

+0
-1
lines changed

src/text/template/parse/parse.go

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,6 @@ type Tree struct {
3232
treeSet map[string]*Tree
3333
actionLine int // line of left delim starting action
3434
rangeDepth int
35-
mode Mode
3635
}
3736

3837
// A mode value is a set of flags (or 0). Modes control parser behavior.

0 commit comments

Comments
 (0)