From fb1de8c6495ded3dfdb9133e8a547ee5e378151f Mon Sep 17 00:00:00 2001
From: Paulo Gomes <paulo.gomes@weave.works>
Date: Fri, 5 Aug 2022 19:07:04 +0100
Subject: [PATCH] remove unused func

Signed-off-by: Paulo Gomes <paulo.gomes@weave.works>
---
 cmd/flux/main.go | 7 -------
 1 file changed, 7 deletions(-)

diff --git a/cmd/flux/main.go b/cmd/flux/main.go
index 9c49b3c5..010ca7ad 100644
--- a/cmd/flux/main.go
+++ b/cmd/flux/main.go
@@ -182,13 +182,6 @@ func configureDefaultNamespace() {
 	}
 }
 
-func homeDir() string {
-	if h := os.Getenv("HOME"); h != "" {
-		return h
-	}
-	return os.Getenv("USERPROFILE") // windows
-}
-
 // readPasswordFromStdin reads a password from stdin and returns the input
 // with trailing newline and/or carriage return removed. It also makes sure that terminal
 // echoing is turned off if stdin is a terminal.
-- 
GitLab