Skip to content

Commit

Permalink
purge useless todo
Browse files Browse the repository at this point in the history
  • Loading branch information
dlepex committed Mar 24, 2018
1 parent bb7b774 commit c532fe9
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 8 deletions.
2 changes: 0 additions & 2 deletions print.go
Original file line number Diff line number Diff line change
Expand Up @@ -100,10 +100,8 @@ func (pk *PkgDesc) renameFunc(args *TypeArgs, inCtor bool) pri.RenameFunc {
}

func (td *TypeDesc) decl(instName string) []*ast.GenDecl {

gd := &ast.GenDecl{}
gd.Tok = token.TYPE
// todo rename type in spec
gd.Specs = []ast.Spec{td.spec}
if !td.singleton {
return []*ast.GenDecl{gd}
Expand Down
8 changes: 2 additions & 6 deletions typeinst.go
Original file line number Diff line number Diff line change
Expand Up @@ -8,19 +8,15 @@ import (
"strings"
)

//TODO DependentTypeName

// generated file suffix
const fileSuffix = "_ti"
const fileSuffix = "_ti" // generated file suffix

func main() {
gofile := os.Getenv("GOFILE")
fmt.Printf("$GOPATH = %v\n$GOFILE = %v\n", os.Getenv("GOPATH"), gofile)
fatalIfErr(Run(gofile))
}

// Run - runs tool on a file
// added for more convenient testing
// Run - convenience func for tests.
func Run(gofile string) (err error) {
defer bpan.RecoverTo(&err)
implFile := implFilename(gofile, fileSuffix)
Expand Down

0 comments on commit c532fe9

Please sign in to comment.