Skip to content

Commit

Permalink
Get rid of garbage code
Browse files Browse the repository at this point in the history
  • Loading branch information
oirik committed Oct 17, 2018
1 parent cb652fe commit 2b0bb42
Showing 1 changed file with 0 additions and 9 deletions.
9 changes: 0 additions & 9 deletions gokenall.go
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,6 @@ import (
"bufio"
"bytes"
"encoding/csv"
"fmt"
"io"
"io/ioutil"
"net/http"
Expand Down Expand Up @@ -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
}
Expand Down

0 comments on commit 2b0bb42

Please sign in to comment.