From 29c12f18ce0e0766411e71f482703aaa3830dfbe Mon Sep 17 00:00:00 2001 From: Mikhail Klementev Date: Sat, 27 Oct 2018 07:37:51 +0000 Subject: [PATCH] Remove unused code --- main.go | 13 ------------- 1 file changed, 13 deletions(-) diff --git a/main.go b/main.go index ab67d41..cabd3ca 100644 --- a/main.go +++ b/main.go @@ -405,19 +405,6 @@ func exists(path string) bool { 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) { ka, err := readArtifactConfig(workPath + "/.out-of-tree.toml") if err != nil {