From 2b0bb42892533325b90831d379d9a35816bd75a5 Mon Sep 17 00:00:00 2001 From: Maty Oirik Date: Wed, 17 Oct 2018 22:00:40 +0900 Subject: [PATCH] Get rid of garbage code --- gokenall.go | 9 --------- 1 file changed, 9 deletions(-) diff --git a/gokenall.go b/gokenall.go index 5d08a8a..ad86a21 100644 --- a/gokenall.go +++ b/gokenall.go @@ -5,7 +5,6 @@ import ( "bufio" "bytes" "encoding/csv" - "fmt" "io" "io/ioutil" "net/http" @@ -164,20 +163,12 @@ func Normalize(r io.Reader, w io.Writer, option NormalizeOption) error { } } - hashSet := make(map[string]struct{}) - normer.push(input) for normer.canPop() { output := normer.pop() outputCSV := output.revertCSV() - if _, ok := hashSet[outputCSV]; ok { - fmt.Println(outputCSV) - continue - } - hashSet[outputCSV] = struct{}{} - if outputLines > 0 { outputCSV = "\n" + outputCSV }