From 1299b204652a7ff57b8ffea8a5ab14838ff3e97f Mon Sep 17 00:00:00 2001 From: moveyield Date: Sat, 14 Feb 2026 13:23:16 +0800 Subject: [PATCH] refactor: remove unused min func Signed-off-by: moveyield --- pkg/tools/web.go | 7 ------- 1 file changed, 7 deletions(-) diff --git a/pkg/tools/web.go b/pkg/tools/web.go index 804d9d1..ccd9958 100644 --- a/pkg/tools/web.go +++ b/pkg/tools/web.go @@ -171,13 +171,6 @@ func (p *DuckDuckGoSearchProvider) extractResults(html string, count int, query return strings.Join(lines, "\n"), nil } -func min(a, b int) int { - if a < b { - return a - } - return b -} - func stripTags(content string) string { re := regexp.MustCompile(`<[^>]+>`) return re.ReplaceAllString(content, "")