diff --git a/tools/src/cmd/gen/main.go b/tools/src/cmd/gen/main.go index 653adbbbfc..cdf91da965 100644 --- a/tools/src/cmd/gen/main.go +++ b/tools/src/cmd/gen/main.go @@ -30,13 +30,12 @@ import ( "runtime" "strconv" "strings" - "text/template" "time" - "unicode" "dawn.googlesource.com/dawn/tools/src/container" "dawn.googlesource.com/dawn/tools/src/fileutils" "dawn.googlesource.com/dawn/tools/src/glob" + "dawn.googlesource.com/dawn/tools/src/template" "dawn.googlesource.com/dawn/tools/src/tint/intrinsic/gen" "dawn.googlesource.com/dawn/tools/src/tint/intrinsic/parser" "dawn.googlesource.com/dawn/tools/src/tint/intrinsic/resolver" @@ -325,7 +324,6 @@ const header = `// Copyright %v The Tint Authors. ` type generator struct { - template *template.Template cache *genCache writeFile WriteFile rnd *rand.Rand @@ -342,32 +340,13 @@ type WriteFile func(relPath, content string) error // syntax. func generate(tmpl string, cache *genCache, w io.Writer, writeFile WriteFile) error { g := generator{ - template: template.New("