remove dead code

This commit is contained in:
Johannes Kimmel 2023-04-23 15:13:21 +02:00
parent 0e455387d5
commit 6d4a9443f4
1 changed files with 0 additions and 25 deletions

View File

@ -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());
}