Skip to content

Commit

Permalink
refactor: remove no longer used code from date-picker (#4771) (#4774)
Browse files Browse the repository at this point in the history
Co-authored-by: Serhii Kulykov <iamkulykov@gmail.com>
  • Loading branch information
vaadin-bot and web-padawan committed Oct 19, 2022
1 parent efc95d2 commit 435df4d
Show file tree
Hide file tree
Showing 2 changed files with 0 additions and 9 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -721,10 +721,6 @@ class DatePickerOverlayContent extends ControllerMixin(ThemableMixin(DirMixin(Po
return months - date2.getMonth() + date1.getMonth();
}

_differenceInYears(date1, date2) {
return this._differenceInMonths(date1, date2) / 12;
}

_clear() {
this._selectDate('');
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -113,11 +113,6 @@ registerStyles(
background: var(--material-background-color);
}
:host([years-visible]) [part='years']::after {
top: calc(20px + 16px);
height: calc(100% - 20px - 16px);
}
[part='year-number'] {
font-size: var(--material-small-font-size);
line-height: 10px; /* NOTE(platosha): chosen to align years to months */
Expand Down

0 comments on commit 435df4d

Please sign in to comment.