From 210a093e49afe9fcb434859808a04f5ed42f0f9a Mon Sep 17 00:00:00 2001 From: WBHarry Date: Sat, 28 Jun 2025 01:55:13 +0200 Subject: [PATCH] Cleanup --- module/applications/sheets/character.mjs | 9 --------- module/helpers/handlebarsHelper.mjs | 10 ---------- 2 files changed, 19 deletions(-) diff --git a/module/applications/sheets/character.mjs b/module/applications/sheets/character.mjs index 797f3c43..d60db36d 100644 --- a/module/applications/sheets/character.mjs +++ b/module/applications/sheets/character.mjs @@ -12,8 +12,6 @@ const { TextEditor } = foundry.applications.ux; export default class CharacterSheet extends DaggerheartSheet(ActorSheetV2) { constructor(options = {}) { super(options); - - this.contextMenu = null; } static DEFAULT_OPTIONS = { @@ -276,11 +274,6 @@ export default class CharacterSheet extends DaggerheartSheet(ActorSheetV2) { }, callback: this.constructor.toggleVault.bind(this) }, - consumeItem: { - name: 'DAGGERHEART.Sheets.PC.ContextMenu.Consume', - icon: '', - callback: this.constructor.useItem.bind(this) - }, sendToChat: { name: 'DAGGERHEART.Sheets.PC.ContextMenu.SendToChat', icon: '', @@ -298,8 +291,6 @@ export default class CharacterSheet extends DaggerheartSheet(ActorSheetV2) { case 'domainCard': menuItems.push(...[allOptions.sendToLoadout, allOptions.sendToVault]); break; - case 'consumable': - menuItems.push(...[allOptions.consumeItem]); } menuItems.push(...[allOptions.sendToChat, allOptions.edit, allOptions.delete]); diff --git a/module/helpers/handlebarsHelper.mjs b/module/helpers/handlebarsHelper.mjs index d105da1c..6200b690 100644 --- a/module/helpers/handlebarsHelper.mjs +++ b/module/helpers/handlebarsHelper.mjs @@ -11,8 +11,6 @@ export default class RegisterHandlebarsHelpers { includes: this.includes, debug: this.debug, signedNumber: this.signedNumber, - cleanClass: this.cleanClass, - tertiary: this.tertiary, length: this.length, switch: this.switch, case: this.case, @@ -139,12 +137,4 @@ export default class RegisterHandlebarsHelpers { console.log(a); return a; } - - static cleanClass(className) { - return className.replaceAll('.', '-'); - } - - static tertiary(condition, a, b) { - return condition ? a : b; - } }