From 0864f1fc8e281bdfd87daaa24881f9f96d6bd10c Mon Sep 17 00:00:00 2001 From: Taylor Gerring Date: Mon, 18 May 2015 12:25:33 -0500 Subject: Remove unused confirm() method --- cmd/utils/cmd.go | 14 -------------- 1 file changed, 14 deletions(-) (limited to 'cmd/utils/cmd.go') diff --git a/cmd/utils/cmd.go b/cmd/utils/cmd.go index 62d350066..39b4e46da 100644 --- a/cmd/utils/cmd.go +++ b/cmd/utils/cmd.go @@ -74,20 +74,6 @@ func openLogFile(Datadir string, filename string) *os.File { return file } -func confirm(message string) bool { - fmt.Println(message, "Are you sure? (y/n)") - var r string - fmt.Scanln(&r) - for ; ; fmt.Scanln(&r) { - if r == "n" || r == "y" { - break - } else { - fmt.Printf("Yes or no? (%s)", r) - } - } - return r == "y" -} - func PromptConfirm(prompt string) (bool, error) { var ( input string -- cgit