Skip to content

Commit 7996cdb

Browse files
authored
chore: remove unused code (#187)
- the contructors with parameters are a leftover from the light weight controls - three unused files for text align and text direction (handled on html now)
1 parent 86912f2 commit 7996cdb

38 files changed

+38
-243
lines changed

packages/main/src/Button.js

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -161,10 +161,6 @@ class Button extends WebComponent {
161161
return ButtonTemplateContext.calculate;
162162
}
163163

164-
constructor() {
165-
super();
166-
}
167-
168164
onBeforeRendering() {
169165
if (this.icon) {
170166
this._iconSettings = {

packages/main/src/Calendar.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -126,8 +126,8 @@ class Calendar extends WebComponent {
126126
return CalendarRenderer;
127127
}
128128

129-
constructor(state) {
130-
super(state);
129+
constructor() {
130+
super();
131131
this._oLocale = getFormatLocale();
132132
this._oLocaleData = new LocaleData(this._oLocale);
133133
this._header = {};

packages/main/src/CalendarHeader.js

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -58,9 +58,8 @@ class CalendarHeader extends WebComponent {
5858
return CalendarHeaderRenderer;
5959
}
6060

61-
constructor(state) {
62-
super(state);
63-
61+
constructor() {
62+
super();
6463
this._btnPrev = {};
6564
this._btnPrev.icon = "sap-icon://slim-arrow-left";
6665

packages/main/src/Card.js

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -115,10 +115,6 @@ class Card extends WebComponent {
115115
return CardRenderer;
116116
}
117117

118-
constructor(state) {
119-
super(state);
120-
}
121-
122118
static calculateTemplateContext(state) {
123119
const hasAvatar = !!state.avatar;
124120
const icon = hasAvatar && isIconURI(state.avatar);

packages/main/src/CheckBox.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -163,8 +163,8 @@ class CheckBox extends WebComponent {
163163
return CheckBoxRenderer;
164164
}
165165

166-
constructor(state) {
167-
super(state);
166+
constructor() {
167+
super();
168168
this._label = {};
169169
}
170170

packages/main/src/CustomListItem.js

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -54,10 +54,6 @@ class CustomListItem extends ListItem {
5454
return CustomListItemRenderer;
5555
}
5656

57-
constructor(state) {
58-
super(state);
59-
}
60-
6157
static get calculateTemplateContext() {
6258
return CustomListItemTemplateContext.calculate;
6359
}

packages/main/src/DatePicker.js

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -214,9 +214,8 @@ class DatePicker extends WebComponent {
214214
}
215215

216216

217-
constructor(state) {
218-
super(state);
219-
217+
constructor() {
218+
super();
220219
this._input = {};
221220
this._input.type = InputType.Text;
222221
this._input.icon = {};

packages/main/src/DayPicker.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -121,8 +121,8 @@ class DayPicker extends WebComponent {
121121
return DayPickerRenderer;
122122
}
123123

124-
constructor(state) {
125-
super(state);
124+
constructor() {
125+
super();
126126
this._oLocale = getFormatLocale();
127127
this._oLocaleData = new LocaleData(this._oLocale);
128128

packages/main/src/Dialog.js

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -81,10 +81,6 @@ class Dialog extends Popup {
8181
return DialogRenderer;
8282
}
8383

84-
constructor(state) {
85-
super(state);
86-
}
87-
8884
/**
8985
* Opens the <code>ui5-dialog</code>.
9086
* @public

packages/main/src/GroupHeaderListItem.js

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -43,10 +43,6 @@ const metadata = {
4343
* @public
4444
*/
4545
class GroupHeaderListItem extends ListItemBase {
46-
constructor(state) {
47-
super(state);
48-
}
49-
5046
static get renderer() {
5147
return GroupHeaderListItemRenderer;
5248
}

0 commit comments

Comments
 (0)