Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Appearance settings

Remove some bits of unused code #1196

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 1 commit into from
Jun 11, 2023
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Remove some bits of unused code
  • Loading branch information
flimzy committed Jun 10, 2023
commit c350b14c810b04554a0fa74a7e38dba42bc1d170
19 changes: 0 additions & 19 deletions 19 build/build.go
Original file line number Diff line number Diff line change
Expand Up @@ -90,19 +90,6 @@ func Import(path string, mode build.ImportMode, installSuffix string, buildTags
return xctx.Import(path, wd, mode)
}

// excludeExecutable excludes all executable implementation .go files.
// They have "executable_" prefix.
func excludeExecutable(goFiles []string) []string {
var s []string
for _, f := range goFiles {
if strings.HasPrefix(f, "executable_") {
continue
}
s = append(s, f)
}
return s
}

// exclude returns files, excluding specified files.
func exclude(files []string, exclude ...string) []string {
var s []string
Expand All @@ -118,12 +105,6 @@ Outer:
return s
}

func include(files []string, includes ...string) []string {
files = exclude(files, includes...) // Ensure there won't be duplicates.
files = append(files, includes...)
return files
}

// ImportDir is like Import but processes the Go package found in the named
// directory.
func ImportDir(dir string, mode build.ImportMode, installSuffix string, buildTags []string) (*PackageData, error) {
Expand Down
14 changes: 0 additions & 14 deletions 14 build/fsutil.go
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,6 @@ package build

import (
"fmt"
"os"
"path/filepath"
)

Expand All @@ -13,16 +12,3 @@ func mustAbs(p string) string {
}
return a
}

// makeWritable attempts to make the given path writable by its owner.
func makeWritable(path string) error {
info, err := os.Stat(path)
if err != nil {
return err
}
err = os.Chmod(path, info.Mode()|0700)
if err != nil {
return err
}
return nil
}
Morty Proxy This is a proxified and sanitized view of the page, visit original site.