Remove unused code
This commit is contained in:
parent
445bef15f7
commit
29c12f18ce
13
main.go
13
main.go
@ -405,19 +405,6 @@ func exists(path string) bool {
|
|||||||
return true
|
return true
|
||||||
}
|
}
|
||||||
|
|
||||||
func oldmain() {
|
|
||||||
kcfgEnv := "OUT_OF_TREE_KERNELS_CONFIG"
|
|
||||||
kcfgPath := os.Getenv(kcfgEnv)
|
|
||||||
if !exists(kcfgPath) {
|
|
||||||
kcfgPath = os.Getenv("GOPATH") + "/src/github.com/jollheef/" +
|
|
||||||
"out-of-tree/tools/kernel-factory/output/kernels.toml"
|
|
||||||
}
|
|
||||||
if !exists(kcfgPath) {
|
|
||||||
log.Fatalln("Please specify kernels config path in " + kcfgEnv)
|
|
||||||
}
|
|
||||||
|
|
||||||
}
|
|
||||||
|
|
||||||
func pewHandler(workPath, kcfgPath string) (err error) {
|
func pewHandler(workPath, kcfgPath string) (err error) {
|
||||||
ka, err := readArtifactConfig(workPath + "/.out-of-tree.toml")
|
ka, err := readArtifactConfig(workPath + "/.out-of-tree.toml")
|
||||||
if err != nil {
|
if err != nil {
|
||||||
|
Loading…
Reference in New Issue
Block a user