fix: remove unused wildcard mapping helper

This commit is contained in:
Wang Lvyuan
2026-03-14 12:56:34 +08:00
parent 01ef7340aa
commit a377e99088
2 changed files with 11 additions and 11 deletions

View File

@@ -612,13 +612,6 @@ func matchWildcard(pattern, str string) bool {
return matchAntigravityWildcard(pattern, str)
}
// matchWildcardMapping 通配符映射匹配(最长优先)
// 如果没有匹配,返回原始字符串
func matchWildcardMapping(mapping map[string]string, requestedModel string) string {
mappedModel, _ := matchWildcardMappingResult(mapping, requestedModel)
return mappedModel
}
func matchWildcardMappingResult(mapping map[string]string, requestedModel string) (string, bool) {
// 收集所有匹配的 pattern按长度降序排序最长优先
type patternMatch struct {