Remove unused code

This commit is contained in:
Yupeng Chen 2023-04-03 11:01:06 +08:00
parent 6a367b2a63
commit bafc008854
Signed by: cyp0633
GPG Key ID: A9F96679CAF4A2B9
1 changed files with 0 additions and 13 deletions

View File

@ -260,16 +260,3 @@ func BuildLL1AnalysisTable() {
}
// 其他情况,直接检测 key 是否存在即可
}
// 求两个 map 的交集
func intersectMaps[T comparable, U any](map1 map[T]U, map2 map[T]U) map[T]U {
result := make(map[T]U)
for key1 := range map1 {
if _, ok := map2[key1]; ok {
result[key1] = map1[key1]
}
}
return result
}