binding: drop unused lowerFirst
This commit is contained in:
parent
4191b18728
commit
396f56f792
1 changed files with 1 additions and 7 deletions
|
@ -96,9 +96,7 @@ func Generate(cfg Config) error {
|
||||||
ctr.Imports = append(ctr.Imports, "github.com/nspcc-dev/neo-go/pkg/interop/neogointernal")
|
ctr.Imports = append(ctr.Imports, "github.com/nspcc-dev/neo-go/pkg/interop/neogointernal")
|
||||||
sort.Strings(ctr.Imports)
|
sort.Strings(ctr.Imports)
|
||||||
|
|
||||||
tmp, err := template.New("generate").Funcs(template.FuncMap{
|
tmp, err := template.New("generate").Parse(srcTmpl)
|
||||||
"lowerFirst": lowerFirst,
|
|
||||||
}).Parse(srcTmpl)
|
|
||||||
if err != nil {
|
if err != nil {
|
||||||
return err
|
return err
|
||||||
}
|
}
|
||||||
|
@ -238,7 +236,3 @@ func TemplateFromManifest(cfg Config, scTypeConverter func(string, smartcontract
|
||||||
func upperFirst(s string) string {
|
func upperFirst(s string) string {
|
||||||
return strings.ToUpper(s[0:1]) + s[1:]
|
return strings.ToUpper(s[0:1]) + s[1:]
|
||||||
}
|
}
|
||||||
|
|
||||||
func lowerFirst(s string) string {
|
|
||||||
return strings.ToLower(s[0:1]) + s[1:]
|
|
||||||
}
|
|
||||||
|
|
Loading…
Reference in a new issue