Skip to content

Commit bf951cb

Browse files
committed
Remove unused code, and optimize tests
1 parent 3767aee commit bf951cb

File tree

2 files changed

+109
-115
lines changed

2 files changed

+109
-115
lines changed

path_to_regexp.go

Lines changed: 0 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -666,16 +666,6 @@ func anyString(str ...string) string {
666666
return ""
667667
}
668668

669-
// Returns the index of str in string slice
670-
func stringIndexOf(arr []string, str string) int {
671-
for i, v := range arr {
672-
if v == str {
673-
return i
674-
}
675-
}
676-
return -1
677-
}
678-
679669
// Transform data which is reflect.Slice, reflect.Array to slice
680670
func toSlice(data interface{}) []interface{} {
681671
v := reflect.ValueOf(data)

0 commit comments

Comments
 (0)