REMOVE unused hanldebars helpers

This commit is contained in:
Joaquin Pereyra 2025-07-09 20:55:22 -03:00
parent f6ec583988
commit 9ccbfe1b01

View file

@ -4,11 +4,9 @@ export default class RegisterHandlebarsHelpers {
static registerHelpers() {
Handlebars.registerHelper({
times: this.times,
join: this.join,
add: this.add,
subtract: this.subtract,
includes: this.includes,
case: this.case
});
}
@ -18,10 +16,6 @@ export default class RegisterHandlebarsHelpers {
return accum;
}
static join(...options) {
return options.slice(0, options.length - 1);
}
static add(a, b) {
const aNum = Number.parseInt(a);
const bNum = Number.parseInt(b);
@ -38,10 +32,4 @@ export default class RegisterHandlebarsHelpers {
return list.includes(item);
}
static case(value, options) {
if (value == this.switch_value) {
this.switch_break = true;
return options.fn(this);
}
}
}