Skip to content

Commit

Permalink
* don't check if the file is stat-able, let the client deal any missi…
Browse files Browse the repository at this point in the history
…ng files
  • Loading branch information
DisposaBoy committed Jan 22, 2013
1 parent fcff3ad commit 0e46f90
Showing 1 changed file with 0 additions and 11 deletions.
11 changes: 0 additions & 11 deletions margo9/m_declarations.go
Original file line number Diff line number Diff line change
Expand Up @@ -67,19 +67,8 @@ func init() {
}

func collectDecls(fset *token.FileSet, af *ast.File, decls []*mDeclarationsDecl) []*mDeclarationsDecl {
exists := map[string]bool{}
for _, fdecl := range af.Decls {
if tp := fset.Position(fdecl.Pos()); tp.IsValid() {
x, ok := exists[tp.Filename]
if !ok {
_, err := os.Stat(tp.Filename)
x = err == nil
exists[tp.Filename] = x
}
if !x {
continue
}

switch n := fdecl.(type) {
case *ast.FuncDecl:
if n.Name.Name != "_" {
Expand Down

0 comments on commit 0e46f90

Please sign in to comment.