Skip to content

Commit

Permalink
Remove Unused Vars
Browse files Browse the repository at this point in the history
  • Loading branch information
tung.tq committed Mar 29, 2023
1 parent 1db8b95 commit ddec7c6
Showing 1 changed file with 0 additions and 4 deletions.
4 changes: 0 additions & 4 deletions internal/generate/generate.go
Original file line number Diff line number Diff line change
Expand Up @@ -242,8 +242,6 @@ type emptyStruct = struct{}
type importVisitorData struct {
rootPackagePath string

packagePaths map[string]emptyStruct

existedImports map[string]emptyStruct
imports []importInfo
}
Expand All @@ -256,7 +254,6 @@ type importVisitor struct {
func newImportVisitorData(rootPackagePath string) *importVisitorData {
return &importVisitorData{
rootPackagePath: rootPackagePath,
packagePaths: map[string]emptyStruct{},
existedImports: map[string]emptyStruct{},
imports: nil,
}
Expand Down Expand Up @@ -308,7 +305,6 @@ func (v *importVisitor) Visit(node ast.Node) ast.Visitor {
pkgInfo := object.Pkg()
pkgPath := pkgInfo.Path()

v.data.packagePaths[pkgPath] = emptyStruct{}
v.data.append([]importInfo{
{
name: pkgInfo.Name(),
Expand Down

0 comments on commit ddec7c6

Please sign in to comment.