Skip to content

Commit

Permalink
chore: remove merge artifact
Browse files Browse the repository at this point in the history
Signed-off-by: Norman <[email protected]>
  • Loading branch information
n0izn0iz committed Jan 9, 2025
1 parent 43c95d4 commit 6e1a134
Showing 1 changed file with 0 additions and 9 deletions.
9 changes: 0 additions & 9 deletions gnovm/pkg/packages/imports.go
Original file line number Diff line number Diff line change
Expand Up @@ -110,12 +110,3 @@ func sortImports(imports []FileImport) {
return imports[i].PkgPath < imports[j].PkgPath
})
}

func FilePackageName(filename string, src string) (string, error) {
fs := token.NewFileSet()
f, err := parser.ParseFile(fs, filename, src, parser.PackageClauseOnly)
if err != nil {
return "", err
}
return f.Name.Name, nil
}

0 comments on commit 6e1a134

Please sign in to comment.