Skip to content

Commit

Permalink
remove deadcode
Browse files Browse the repository at this point in the history
the [`deadcode`](https://github.com/tsenart/deadcode) tool points out that this utility function is unused.
  • Loading branch information
klauern committed Aug 1, 2017
1 parent e2c1f8c commit 2cc1708
Showing 1 changed file with 0 additions and 10 deletions.
10 changes: 0 additions & 10 deletions utils.go
Original file line number Diff line number Diff line change
Expand Up @@ -23,13 +23,3 @@ func makeJson(data interface{}) string {
}
return string(json.RawMessage(str))
}

// Check if element is present in a slice.
func inSlice(a string, list []string) bool {
for _, b := range list {
if b == a {
return true
}
}
return false
}

0 comments on commit 2cc1708

Please sign in to comment.