refactor: remove unused min func

Signed-off-by: moveyield <moveyield@outlook.com>
This commit is contained in:
moveyield
2026-02-14 13:23:16 +08:00
committed by Meng Zhuo
parent 5872e0f55e
commit 1299b20465

View File

@@ -171,13 +171,6 @@ func (p *DuckDuckGoSearchProvider) extractResults(html string, count int, query
return strings.Join(lines, "\n"), nil return strings.Join(lines, "\n"), nil
} }
func min(a, b int) int {
if a < b {
return a
}
return b
}
func stripTags(content string) string { func stripTags(content string) string {
re := regexp.MustCompile(`<[^>]+>`) re := regexp.MustCompile(`<[^>]+>`)
return re.ReplaceAllString(content, "") return re.ReplaceAllString(content, "")