Skip to content

Commit d9e1b0e

Browse files
authored
Merge pull request #1196 from gopherjs/unused
Remove some bits of unused code
2 parents 3c090eb + c350b14 commit d9e1b0e

File tree

2 files changed

+0
-33
lines changed

2 files changed

+0
-33
lines changed

build/build.go

Lines changed: 0 additions & 19 deletions
Original file line numberDiff line numberDiff line change
@@ -90,19 +90,6 @@ func Import(path string, mode build.ImportMode, installSuffix string, buildTags
9090
return xctx.Import(path, wd, mode)
9191
}
9292

93-
// excludeExecutable excludes all executable implementation .go files.
94-
// They have "executable_" prefix.
95-
func excludeExecutable(goFiles []string) []string {
96-
var s []string
97-
for _, f := range goFiles {
98-
if strings.HasPrefix(f, "executable_") {
99-
continue
100-
}
101-
s = append(s, f)
102-
}
103-
return s
104-
}
105-
10693
// exclude returns files, excluding specified files.
10794
func exclude(files []string, exclude ...string) []string {
10895
var s []string
@@ -118,12 +105,6 @@ Outer:
118105
return s
119106
}
120107

121-
func include(files []string, includes ...string) []string {
122-
files = exclude(files, includes...) // Ensure there won't be duplicates.
123-
files = append(files, includes...)
124-
return files
125-
}
126-
127108
// ImportDir is like Import but processes the Go package found in the named
128109
// directory.
129110
func ImportDir(dir string, mode build.ImportMode, installSuffix string, buildTags []string) (*PackageData, error) {

build/fsutil.go

Lines changed: 0 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,6 @@ package build
22

33
import (
44
"fmt"
5-
"os"
65
"path/filepath"
76
)
87

@@ -13,16 +12,3 @@ func mustAbs(p string) string {
1312
}
1413
return a
1514
}
16-
17-
// makeWritable attempts to make the given path writable by its owner.
18-
func makeWritable(path string) error {
19-
info, err := os.Stat(path)
20-
if err != nil {
21-
return err
22-
}
23-
err = os.Chmod(path, info.Mode()|0700)
24-
if err != nil {
25-
return err
26-
}
27-
return nil
28-
}

0 commit comments

Comments
 (0)