Skip to content

Commit 5da12d7

Browse files
committed
Remove unused function
1 parent 48c1663 commit 5da12d7

File tree

2 files changed

+0
-16
lines changed

2 files changed

+0
-16
lines changed

checker.go

Lines changed: 0 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -13,13 +13,6 @@ import (
1313
"github.com/spf13/cast"
1414
)
1515

16-
// 检查ID参数
17-
func checkIDArgument(id string) bool {
18-
_, err := generateCode(id)
19-
20-
return err == nil
21-
}
22-
2316
// 生成数据
2417
func generateCode(id string) (map[string]string, error) {
2518
length := len(id)

helper.go

Lines changed: 0 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -134,12 +134,3 @@ func substr(source string, start int, end int) string {
134134

135135
return string(r[start:end])
136136
}
137-
138-
// MapMerge 合并 Map
139-
func MapMerge(target, source map[int][]map[string]string) map[int][]map[string]string {
140-
for key, value := range source {
141-
target[key] = value
142-
}
143-
144-
return target
145-
}

0 commit comments

Comments
 (0)