aboutsummaryrefslogtreecommitdiffstats
path: root/cmd/utils/cmd.go
diff options
context:
space:
mode:
authorTaylor Gerring <taylor.gerring@gmail.com>2015-05-19 01:25:33 +0800
committerTaylor Gerring <taylor.gerring@gmail.com>2015-05-19 01:25:33 +0800
commit0864f1fc8e281bdfd87daaa24881f9f96d6bd10c (patch)
tree0984fbdfab05848c73dd2d942f235f4de776ed67 /cmd/utils/cmd.go
parentf14feea43683fee58e26a48a51145e72d3ae7ad8 (diff)
downloadgo-tangerine-0864f1fc8e281bdfd87daaa24881f9f96d6bd10c.tar.gz
go-tangerine-0864f1fc8e281bdfd87daaa24881f9f96d6bd10c.tar.zst
go-tangerine-0864f1fc8e281bdfd87daaa24881f9f96d6bd10c.zip
Remove unused confirm() method
Diffstat (limited to 'cmd/utils/cmd.go')
-rw-r--r--cmd/utils/cmd.go14
1 files changed, 0 insertions, 14 deletions
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