From 5a21f502309c7bbdeb5d0b062b3bfb2f0a92b5ea Mon Sep 17 00:00:00 2001 From: Hidde Beydals Date: Mon, 15 Feb 2021 20:51:27 +0100 Subject: [PATCH] Remove unused util functions Signed-off-by: Hidde Beydals --- internal/utils/utils.go | 35 ----------------------------------- 1 file changed, 35 deletions(-) diff --git a/internal/utils/utils.go b/internal/utils/utils.go index 358bdf0e..94b26866 100644 --- a/internal/utils/utils.go +++ b/internal/utils/utils.go @@ -205,41 +205,6 @@ func SplitKubeConfigPath(path string) []string { return strings.Split(path, sep) } -func WriteFile(content, filename string) error { - file, err := os.Create(filename) - if err != nil { - return err - } - defer file.Close() - - _, err = io.WriteString(file, content) - if err != nil { - return err - } - - return file.Sync() -} - -func CopyFile(src, dst string) error { - in, err := os.Open(src) - if err != nil { - return err - } - defer in.Close() - - out, err := os.Create(dst) - if err != nil { - return err - } - defer out.Close() - - _, err = io.Copy(out, in) - if err != nil { - return err - } - return out.Close() -} - func ContainsItemString(s []string, e string) bool { for _, a := range s { if a == e {