remove dead code
This commit is contained in:
parent
0e455387d5
commit
6d4a9443f4
25
l3config.js
25
l3config.js
|
@ -21,9 +21,6 @@ class L3Section {
|
|||
}
|
||||
return fs;
|
||||
}
|
||||
values() {
|
||||
this.inputs.map((input) => {input.id = input.value;})
|
||||
}
|
||||
render() {
|
||||
const options = this.inputs
|
||||
.flatMap(input => input.option())
|
||||
|
@ -150,12 +147,6 @@ class L3Input {
|
|||
return div;
|
||||
|
||||
}
|
||||
id() {
|
||||
return this.id;
|
||||
}
|
||||
value() {
|
||||
return this.input.value;
|
||||
}
|
||||
option() {
|
||||
switch (this.input.type) {
|
||||
case 'radio':
|
||||
|
@ -174,19 +165,6 @@ class L3Input {
|
|||
|
||||
return ret;
|
||||
}
|
||||
render() {
|
||||
switch (this.input.type) {
|
||||
case 'radio':
|
||||
case 'checkbox':
|
||||
if (!this.input.checked || this.input.value == 'undefined') return undefined;
|
||||
break;
|
||||
default:
|
||||
if (!this.input.value) return undefined;
|
||||
break;
|
||||
}
|
||||
|
||||
return `option ${this.optionName} '${this.input.value}'`
|
||||
}
|
||||
}
|
||||
|
||||
class L3MultiInput {
|
||||
|
@ -234,9 +212,6 @@ class L3MultiInput {
|
|||
div.remove();
|
||||
this.handleUpdate();
|
||||
}
|
||||
render() {
|
||||
return this.inputs.map(input => input.render()).filter(input => !!input)
|
||||
}
|
||||
option() {
|
||||
return this.inputs.map(input => input.option());
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue
Block a user