Cleanup ignore tests

This commit is contained in:
Jakob Borg
2014-01-12 11:10:15 -07:00
parent 45fcf4bc84
commit af399ae9f3
2 changed files with 21 additions and 34 deletions

View File

@@ -227,15 +227,6 @@ func (m *Model) cleanTempFiles() {
filepath.Walk(m.dir, m.cleanTempFile)
}
func ignoreFilter(patterns map[string][]string, files []File) (filtered []File) {
for _, f := range files {
if !ignoreFile(patterns, f.Name) {
filtered = append(filtered, f)
}
}
return filtered
}
func ignoreFile(patterns map[string][]string, file string) bool {
first, last := path.Split(file)
for prefix, pats := range patterns {