templating: Remove unused lazy code

This commit is contained in:
Tom 2023-07-13 22:51:20 +02:00
parent 1c68893a02
commit 46b16e5700
4 changed files with 30 additions and 110 deletions

View file

@ -21,7 +21,7 @@ type Parsed[C any] struct {
// If base is not nil, every template associated with the base template is copied into the given template.
// Functions will be applied on creation time to represent the context for the given template.
func Parse[C any](name string, source []byte, base *template.Template, funcs ...FlagFunc) Parsed[C] {
tp := reflectx.TypeOf[C]()
tp := reflectx.MakeType[C]()
// determine if we have an embedded field in the struct
var hasEmbed bool