good morning!!!!

Skip to content
Snippets Groups Projects
Commit 0864f1fc authored by Taylor Gerring's avatar Taylor Gerring
Browse files

Remove unused confirm() method

parent f14feea4
Branches
Tags
No related merge requests found
......@@ -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
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment