1
0

Remove unused code

This commit is contained in:
dump_stack() 2018-10-27 07:37:51 +00:00
parent 445bef15f7
commit 29c12f18ce

13
main.go
View File

@ -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 {