binding: drop unused lowerFirst

This commit is contained in:
Roman Khimov 2022-10-26 12:47:39 +03:00
parent 4191b18728
commit 396f56f792

View file

@ -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:]
}