fix: remove unused 'cal' in statBuckets (warning)
Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
This commit is contained in:
@@ -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"
|
||||||
|
|||||||
Reference in New Issue
Block a user