Skip to content

Commit

Permalink
Removed unused code from original concept
Browse files Browse the repository at this point in the history
  • Loading branch information
Oceanity committed Dec 26, 2024
1 parent 033ae5e commit 1776a7b
Showing 1 changed file with 0 additions and 7 deletions.
7 changes: 0 additions & 7 deletions src/backend/effects/builtin/update-channel-reward.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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 };
Expand All @@ -23,7 +22,6 @@ type EffectMeta = {
channelRewardId: string;
customId: string;
useTag?: boolean;
useCustomId?: boolean;
sortTagId?: string;
}

Expand Down Expand Up @@ -374,11 +372,6 @@ const model: EffectType<EffectMeta> = {
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<string, RewardWithTags>)
.filter(reward => reward.sortTags?.includes(effect.sortTagId) && reward.manageable);

Expand Down

0 comments on commit 1776a7b

Please sign in to comment.