From 0e46f90a72d6e7f93adcded76bd3e571bdcf3f4b Mon Sep 17 00:00:00 2001 From: DisposaBoy Date: Tue, 22 Jan 2013 19:19:26 +0000 Subject: [PATCH] * don't check if the file is stat-able, let the client deal any missing files --- margo9/m_declarations.go | 11 ----------- 1 file changed, 11 deletions(-) diff --git a/margo9/m_declarations.go b/margo9/m_declarations.go index 71d77d2b..ea46b0f2 100644 --- a/margo9/m_declarations.go +++ b/margo9/m_declarations.go @@ -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 != "_" {