From 982878cd957a91db349582dbeb120ead6a9de256 Mon Sep 17 00:00:00 2001 From: Chomp Date: Sun, 10 Aug 2025 12:17:05 +0100 Subject: [PATCH] Removed unused helper method --- .../Helpers/ItemHelper.cs | 37 ------------------- 1 file changed, 37 deletions(-) diff --git a/Libraries/SPTarkov.Server.Core/Helpers/ItemHelper.cs b/Libraries/SPTarkov.Server.Core/Helpers/ItemHelper.cs index 0344752f..d9626d1a 100644 --- a/Libraries/SPTarkov.Server.Core/Helpers/ItemHelper.cs +++ b/Libraries/SPTarkov.Server.Core/Helpers/ItemHelper.cs @@ -1090,43 +1090,6 @@ public class ItemHelper( item.Upd.SpawnedInSession = true; } - /// - /// WARNING, SLOW. Recursively loop down through an items hierarchy to see if any of the ids match the supplied list, return true if any do - /// - /// Items tpl to check parents of - /// Tpl values to check if parents of item match - /// bool Match found - public bool DoesItemOrParentsIdMatch(MongoId tpl, HashSet tplsToCheck) - { - var (itemExists, item) = GetItem(tpl); - - // not an item, drop out - if (!itemExists || item == null) - { - return false; - } - - // no parent to check - if (item.Parent == null) - { - return false; - } - - // Does templateId match any values in tplsToCheck array - if (tplsToCheck.Contains(item.Id)) - { - return true; - } - - // check items parent with same method - if (tplsToCheck.Contains(item.Parent)) - { - return true; - } - - return DoesItemOrParentsIdMatch(item.Parent, tplsToCheck); - } - /// /// Checks to see if the item is *actually* moddable in-raid. Checks include the items existence in the database, the /// parent items existence in the database, the existence (and value) of the items `RaidModdable` property, and that