فهرست منبع

remove unnecessary code

polscm32 2 سال پیش
والد
کامیت
3e0a5a261b

+ 0 - 17
FreeAPS/Sources/Modules/Home/View/Chart/DataModel.swift

@@ -1,18 +1 @@
 import Foundation
-
-// let ektasienView: [ViewMonth] = [
-//    .init(date: Date.from(year: 2023, month: 1, day: 1), viewCount: 123),
-//    .init(date: Date.from(year: 2023, month: 2, day: 1), viewCount: 100),
-//    .init(date: Date.from(year: 2023, month: 3, day: 1), viewCount: 80),
-//    .init(date: Date.from(year: 2023, month: 4, day: 1), viewCount: 65),
-//    .init(date: Date.from(year: 2023, month: 5, day: 1), viewCount: 120),
-//    .init(date: Date.from(year: 2023, month: 6, day: 1), viewCount: 25)
-// ]
-
-// struct GlucoseInChart {
-//    let value: Decimal
-//    let id: UUID
-//    let timestamp: Date
-// }
-//
-// @Binding var bloodGlucoseDataModel: [BloodGlucose]

+ 0 - 19
FreeAPS/Sources/Modules/Home/View/Chart/MainChartView2.swift

@@ -303,22 +303,3 @@ struct Legend: View {
         .padding(.vertical, 10)
     }
 }
-
-// struct BloodGlucose: Identifiable {
-//    let id = UUID()
-//    let timestamp: Date
-//    let value: Int
-// }
-
-// struct ViewMonth: Identifiable {
-//    let id = UUID()
-//    let date: Date
-//    let viewCount: Int
-// }
-
-// extension Date {
-//    static func from(year: Int, month: Int, day: Int) -> Date {
-//        let components = DateComponents(year: year, month: month, day: day)
-//        return Calendar.current.date(from: components)!
-//    }
-// }