From 1776a7bafe52a9f0d157578798d18e2125c29742 Mon Sep 17 00:00:00 2001 From: Izzy Deane Date: Thu, 26 Dec 2024 16:43:13 -0600 Subject: [PATCH] Removed unused code from original concept --- src/backend/effects/builtin/update-channel-reward.ts | 7 ------- 1 file changed, 7 deletions(-) diff --git a/src/backend/effects/builtin/update-channel-reward.ts b/src/backend/effects/builtin/update-channel-reward.ts index f0bf136eb..6994918b8 100644 --- a/src/backend/effects/builtin/update-channel-reward.ts +++ b/src/backend/effects/builtin/update-channel-reward.ts @@ -3,7 +3,6 @@ import { EffectCategory } from '../../../shared/effect-constants'; import { SavedChannelReward } from "../../../types/channel-rewards"; import { EffectType } from "../../../types/effects"; import channelRewardsManager from "../../channel-rewards/channel-reward-manager"; -import profileManager from "../../common/profile-manager"; import logger from "../../logwrapper"; type StringUpdatable = { update: boolean, newValue: string }; @@ -23,7 +22,6 @@ type EffectMeta = { channelRewardId: string; customId: string; useTag?: boolean; - useCustomId?: boolean; sortTagId?: string; } @@ -374,11 +372,6 @@ const model: EffectType = { return false; } - const tagId = effect.useCustomId ? effect.customId : effect.sortTagId; - if (effect.useCustomId && !validate(tagId)) { - console.log(profileManager.getJsonDbInProfile("sort-tags")); - } - const rewards = Object.values(channelRewardsManager.channelRewards as Record) .filter(reward => reward.sortTags?.includes(effect.sortTagId) && reward.manageable);