Skip to content

Commit c1c6136

Browse files
committed
refactor: 불필요 메서드 제거
1 parent 49bfcb8 commit c1c6136

1 file changed

Lines changed: 0 additions & 7 deletions

File tree

DevLog/Presentation/ViewModel/ProfileViewModel.swift

Lines changed: 0 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -368,13 +368,6 @@ private extension ProfileViewModel {
368368
return ProfileCompletionMonth(monthStart: monthStart, weeks: weeks)
369369
}
370370

371-
func startOfMonth(for date: Date, calendar: Calendar) -> Date {
372-
guard let monthInterval = calendar.dateInterval(of: .month, for: date) else {
373-
return calendar.startOfDay(for: date)
374-
}
375-
return monthInterval.start
376-
}
377-
378371
func quarterStart(for date: Date, calendar: Calendar) -> Date? {
379372
let month = calendar.component(.month, from: date)
380373
let startMonth = ((month - 1) / 3) * 3 + 1

0 commit comments

Comments
 (0)