From d8c6942decfb717fc6776ada403c26c0100cbe0b Mon Sep 17 00:00:00 2001 From: Weilence Date: Tue, 30 Aug 2022 11:16:19 +0800 Subject: [PATCH] entc/gen: remove repeated template fragment --- entc/gen/template/builder/update.tmpl | 7 ------- 1 file changed, 7 deletions(-) diff --git a/entc/gen/template/builder/update.tmpl b/entc/gen/template/builder/update.tmpl index 4dbb3c09c5..af22b14c79 100644 --- a/entc/gen/template/builder/update.tmpl +++ b/entc/gen/template/builder/update.tmpl @@ -248,13 +248,6 @@ func ({{ $receiver }} *{{ $onebuilder }}) ExecX(ctx context.Context) { {{- end }} {{- end }} -{{- /* Support adding update methods by global templates. */}} -{{- with $tmpls := matchTemplate "update/additional/*" }} - {{- range $tmpl := $tmpls }} - {{ xtemplate $tmpl $ }} - {{- end }} -{{- end }} - {{ end }} {{/* shared struct fields between the two updaters */}}