fix: remove unused 'cal' in statBuckets (warning)

Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
This commit is contained in:
kutesir
2026-06-10 17:36:35 +03:00
parent 0362d586e5
commit f252fc7707

View File

@@ -438,7 +438,6 @@ class WorkoutViewModel: ObservableObject {
/// A series of `count` recent periods, oldest newest, for charting. /// A series of `count` recent periods, oldest newest, for charting.
func statBuckets(_ period: StatPeriod, count: Int) -> [StatBucket] { func statBuckets(_ period: StatPeriod, count: Int) -> [StatBucket] {
let cal = Calendar.current
let fmt = DateFormatter() let fmt = DateFormatter()
switch period { switch period {
case .day: fmt.dateFormat = "EEE" case .day: fmt.dateFormat = "EEE"