From 396f56f792ebac385dc94b70472f60aa22b7ed77 Mon Sep 17 00:00:00 2001 From: Roman Khimov Date: Wed, 26 Oct 2022 12:47:39 +0300 Subject: [PATCH] binding: drop unused lowerFirst --- pkg/smartcontract/binding/generate.go | 8 +------- 1 file changed, 1 insertion(+), 7 deletions(-) diff --git a/pkg/smartcontract/binding/generate.go b/pkg/smartcontract/binding/generate.go index 17d5e028d..f9dfb2986 100644 --- a/pkg/smartcontract/binding/generate.go +++ b/pkg/smartcontract/binding/generate.go @@ -96,9 +96,7 @@ func Generate(cfg Config) error { ctr.Imports = append(ctr.Imports, "github.com/nspcc-dev/neo-go/pkg/interop/neogointernal") sort.Strings(ctr.Imports) - tmp, err := template.New("generate").Funcs(template.FuncMap{ - "lowerFirst": lowerFirst, - }).Parse(srcTmpl) + tmp, err := template.New("generate").Parse(srcTmpl) if err != nil { return err } @@ -238,7 +236,3 @@ func TemplateFromManifest(cfg Config, scTypeConverter func(string, smartcontract func upperFirst(s string) string { return strings.ToUpper(s[0:1]) + s[1:] } - -func lowerFirst(s string) string { - return strings.ToLower(s[0:1]) + s[1:] -}