Removed unused functions

Fixes #534 by removing functions askForConfirmation in app.go, TransformData and RandStringBytes in utils.go
This commit is contained in:
Suraj Narwade
2017-04-04 11:24:35 +05:30
parent a24084d2a6
commit 3a086b4f2f
2 changed files with 0 additions and 55 deletions
-17
View File
@@ -17,7 +17,6 @@ limitations under the License.
package app
import (
"fmt"
"strings"
log "github.com/Sirupsen/logrus"
@@ -306,19 +305,3 @@ func getTransformer(opt kobject.ConvertOptions) transformer.Transformer {
}
return t
}
func askForConfirmation() bool {
var response string
_, err := fmt.Scanln(&response)
if err != nil {
log.Fatal(err)
}
if response == "yes" {
return true
} else if response == "no" {
return false
} else {
fmt.Println("Please type yes or no and then press enter:")
return askForConfirmation()
}
}