Skip to content

Commit

Permalink
refactor(dead): remove dead code
Browse files Browse the repository at this point in the history
  • Loading branch information
phBalance committed Dec 14, 2024
1 parent 0949133 commit 5e28306
Showing 1 changed file with 0 additions and 24 deletions.
24 changes: 0 additions & 24 deletions module/item/item-attack-application.mjs
Original file line number Diff line number Diff line change
Expand Up @@ -21,23 +21,6 @@ export class ItemAttackFormApplication extends FormApplication {
this.data = data;
this.options.title = `${this.data?.item?.actor?.name} roll to hit`;

// const _updateItem = async function (item, changes, options, userId) {
// if (!this.rendered) return;

// if (item.id === this.data.item.id) {
// this.updateItem(item, changes, options, userId);
// }

// const cslSkill = CombatSkillLevelsForAttack(this.data.item).skill;
// if (cslSkill && item.id === cslSkill.id) {
// this.updateItem(item, changes, options, userId);
// }
// if (!cslSkill && data.cslSkill) {
// this.updateItem(item, changes, options, userId);
// }
// };
// Hooks.on("updateItem", _updateItem.bind(this));

const _targetToken = async function () {
// Necessary for situations where it is not possible
// to properly wait for promises to resolve before refreshing the UI.
Expand All @@ -62,13 +45,6 @@ export class ItemAttackFormApplication extends FormApplication {
Hooks.on("updateItem", _updateItem.bind(this));
}

// async close(options = {}) {
// Hooks.off("targetToken", this._targetToken);
// Hooks.off("controlToken", this._controlToken);
// Hooks.off("updateItem", this._updateItem);
// return super.close(options);
// }

refresh() {
foundry.utils.debounce(this.render(), 100);
}
Expand Down

0 comments on commit 5e28306

Please sign in to comment.