diff options
Diffstat (limited to 'generate.go')
| -rw-r--r-- | generate.go | 16 |
1 files changed, 2 insertions, 14 deletions
diff --git a/generate.go b/generate.go index 739e87e..c2287b9 100644 --- a/generate.go +++ b/generate.go @@ -166,7 +166,6 @@ func (pb *Files) makeNewSortfile(pf *File) error { log.Printf("Adding %s\n", funcdef) } if PARENT == VARNAME { - // FUNCNAME := "Append" funcdef := msg.simpleAppend(wSort, PARENT, v.VarName, v.VarType) log.Printf("Adding %s\n", funcdef) @@ -237,7 +236,7 @@ func (pb *Files) makeNewSortfile(pf *File) error { } } - // add Find() Delete() Append() Insert() + // add Find() Delete() Insert() for _, s := range pf.ToSort { PARENT := s.MsgName VARNAME := s.VarName @@ -326,7 +325,7 @@ func (pb *Files) makeNewSortfile(pf *File) error { } } - // AppendBy() functions. todo: fix these so Append() is for simple things and Insert() is for unique keys + // AppendBy() functions. todo: make Insert() for unique var ucount int for _, v := range msg.Vars { if v.VarType != "string" { @@ -394,14 +393,3 @@ func (pf *File) allMsg() []*MsgName { } return all } - -/* -func (pf *File) specialBases(wFind io.Writer) { - var FRUIT string = cases.Title(language.English, cases.NoLower).String(pf.Bases.Name) - var APPLES string = cases.Title(language.English, cases.NoLower).String(pf.Bases.Name) - var APPLE string = cases.Title(language.English, cases.NoLower).String(pf.Base.Name) - - pf.Bases.simpleAppend(wFind, FRUIT, APPLES, APPLE) - -} -*/ |
