8000 gotext: remove unused code (from ssoroka commit 059a5b1dfb6e3c931765f… · golang/text@30a2840 · GitHub
[go: up one dir, main page]

Skip to content

Commit 30a2840

Browse files
committed
gotext: remove unused code (from ssoroka commit 059a5b1)
1 parent 1bdb400 commit 30a2840

File tree

1 file changed

+0
-29
lines changed

1 file changed

+0
-29
lines changed

cmd/gotext/common.go

Lines changed: 0 additions & 29 deletions
Original file line numberDiff line numberDiff line change
@@ -6,16 +6,6 @@ package main
66

77
import (
88
"fmt"
9-
"go/build"
10-
"go/parser"
11-
12-
"golang.org/x/tools/go/loader"
13-
)
14-
15-
const (
16-
extractFile = "extracted.gotext.json"
17-
outFile = "out.gotext.json"
18-
gotextSuffix = ".gotext.json"
199
)
2010

2111
// NOTE: The command line tool already prefixes with "gotext:".
@@ -28,22 +18,3 @@ var (
2818
}
2919
errorf = fmt.Errorf
3020
)
31-
32-
// TODO: still used. Remove when possible.
33-
func loadPackages(conf *loader.Config, args []string) (*loader.Program, error) {
34-
if len(args) == 0 {
35-
args = []string{"."}
36-
}
37-
38-
conf.Build = &build.Default
39-
conf.ParserMode = parser.ParseComments
40-
41-
// Use the initial packages from the command line.
42-
args, err := conf.FromArgs(args, false)
43-
if err != nil {
44-
return nil, wrap(err, "loading packages failed")
45-
}
46-
47-
// Load, parse and type-check the whole program.
48-
return conf.Load()
49-
}

0 commit comments

Comments
 (0)
0