From 7847ab8270efab472b7b6a4bf9a57f5b83cb7212 Mon Sep 17 00:00:00 2001 From: "Joe Richey joerichey@google.com" Date: Tue, 17 Oct 2017 18:10:54 -0700 Subject: fmt almost done --- util/util.go | 10 ---------- 1 file changed, 10 deletions(-) (limited to 'util') diff --git a/util/util.go b/util/util.go index 9f62b45..e7fc522 100644 --- a/util/util.go +++ b/util/util.go @@ -24,9 +24,7 @@ package util import ( - "bufio" "math" - "os" "strconv" "unsafe" ) @@ -99,14 +97,6 @@ func MinInt64(a, b int64) int64 { return b } -// ReadLine returns a line of input from standard input. An empty string is -// returned if the user didn't insert anything or on error. -func ReadLine() (string, error) { - scanner := bufio.NewScanner(os.Stdin) - scanner.Scan() - return scanner.Text(), scanner.Err() -} - // AtoiOrPanic converts a string to an int or it panics. Should only be used in // situations where the input MUST be a decimal number. func AtoiOrPanic(input string) int { -- cgit v1.3