Skip to content

Commit

Permalink
Removed Unused Function
Browse files Browse the repository at this point in the history
  • Loading branch information
Ruskyy committed Sep 15, 2023
1 parent 97aa140 commit 0c5e8ea
Showing 1 changed file with 0 additions and 9 deletions.
9 changes: 0 additions & 9 deletions demand-capacity-mgmt-frontend/src/components/WeeklyView.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -40,15 +40,6 @@ function getISOWeekMonday(year: number, isoWeek: number): moment.Moment {
return moment().year(year).isoWeek(isoWeek).startOf('isoWeek');
}


function getDateFromISOWeek(isoWeekString: string): moment.Moment {
const [yearStr, weekStr] = isoWeekString.split('-W');
const year = parseInt(yearStr, 10);
const week = parseInt(weekStr, 10);
return getISOWeekMonday(year, week);
}


function getYearOfWeek(date: moment.Moment): number {
return date.add(3, 'days').year();
}
Expand Down

0 comments on commit 0c5e8ea

Please sign in to comment.