Skip to content

Commit bcef57d

Browse files
fix: remove unused countMatchingEvents function
1 parent b1b15a5 commit bcef57d

1 file changed

Lines changed: 0 additions & 12 deletions

File tree

src/features/settings/components/CategoriesSettings.tsx

Lines changed: 0 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -6,18 +6,6 @@ import { EVENT_COLORS } from '@/store/settingsStore'
66
import type { AutoCategoryRule } from '@/types/categories'
77
import styles from './Settings.module.css'
88

9-
function countMatchingEvents(
10-
keywords: string[],
11-
events: { title: string; categories?: string[] }[]
12-
): number {
13-
if (keywords.length === 0) return 0
14-
const lowerKeywords = keywords.map((k) => k.toLowerCase())
15-
return events.filter((e) => {
16-
const lowerTitle = e.title.toLowerCase()
17-
return lowerKeywords.some((kw) => lowerTitle.includes(kw))
18-
}).length
19-
}
20-
219
function KeywordInput({
2210
keywords,
2311
onChange,

0 commit comments

Comments
 (0)