Skip to content

Commit e6ee307

Browse files
refactor: remove no longer used code from date-picker (#4771) (#4773)
Co-authored-by: Serhii Kulykov <iamkulykov@gmail.com>
1 parent 3f065fa commit e6ee307

2 files changed

Lines changed: 0 additions & 9 deletions

File tree

‎packages/date-picker/src/vaadin-date-picker-overlay-content.js‎

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -721,10 +721,6 @@ class DatePickerOverlayContent extends ControllerMixin(ThemableMixin(DirMixin(Po
721721
return months - date2.getMonth() + date1.getMonth();
722722
}
723723

724-
_differenceInYears(date1, date2) {
725-
return this._differenceInMonths(date1, date2) / 12;
726-
}
727-
728724
_clear() {
729725
this._selectDate('');
730726
}

‎packages/date-picker/theme/material/vaadin-date-picker-overlay-content-styles.js‎

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -113,11 +113,6 @@ registerStyles(
113113
background: var(--material-background-color);
114114
}
115115
116-
:host([years-visible]) [part='years']::after {
117-
top: calc(20px + 16px);
118-
height: calc(100% - 20px - 16px);
119-
}
120-
121116
[part='year-number'] {
122117
font-size: var(--material-small-font-size);
123118
line-height: 10px; /* NOTE(platosha): chosen to align years to months */

0 commit comments

Comments
 (0)