cmd/gomote: drop unnecessary check for arch files
The .[56789] extentions are no longer used since Go 1.5. and the
object files are already covered by isGitIgnored.
Change-Id: I0f2fe2bc248a8a3f0b2bdc1b59dd31f2242a6797
Reviewed-on: https://go-review.googlesource.com/83695
Reviewed-by: Brad Fitzpatrick <bradfitz@golang.org>
diff --git a/cmd/gomote/push.go b/cmd/gomote/push.go
index 6587146..021877e 100644
--- a/cmd/gomote/push.go
+++ b/cmd/gomote/push.go
@@ -155,10 +155,6 @@
if rel == "" {
return nil
}
- if strings.HasPrefix(rel, "test/") && isDotArchChar(rel) {
- // Skip test/bench/shootout/spectral-norm.6, etc.
- return nil
- }
if fi.IsDir() {
switch rel {
case ".git", "pkg", "bin":
@@ -382,14 +378,3 @@
}
return fmt.Sprintf("%x", s1.Sum(nil)), nil
}
-
-func isDotArchChar(path string) bool {
- if len(path) < 2 || path[len(path)-2] != '.' {
- return false
- }
- switch path[len(path)-1] {
- case '6', '8', '5', '7', '9':
- return true
- }
- return false
-}