]> Cypherpunks repositories - gostls13.git/commitdiff
html/template: remove unused `mode` field on `Tree` struct
authorGusted <williamzijl7@hotmail.com>
Mon, 18 Oct 2021 17:38:22 +0000 (17:38 +0000)
committerCherry Mui <cherryyz@google.com>
Mon, 18 Oct 2021 20:39:22 +0000 (20:39 +0000)
This changes Go, to remove this unused field on the `Tree` struct. Which seems to replaced by the non-private field `Mode`.

Change-Id: I5b384424cf60aa0af36eb8aad1d8db3f99b9838e
GitHub-Last-Rev: 4b033f967b55ff99df8a969ac1c91c358b82b726
GitHub-Pull-Request: golang/go#48028
Reviewed-on: https://go-review.googlesource.com/c/go/+/345789
Trust: Cherry Mui <cherryyz@google.com>
Run-TryBot: Cherry Mui <cherryyz@google.com>
TryBot-Result: Go Bot <gobot@golang.org>
Reviewed-by: Rob Pike <r@golang.org>
src/text/template/parse/parse.go

index d92bed5d3d4bfc79fe5d1400f7552c36be3b3ddb..64b29a2e169bd2e4e51e9eee73b0fae7494382aa 100644 (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.