Delete dead runtime item projection bridge

This commit is contained in:
Meta Vens 2026-06-14 07:35:33 +01:00
commit d15418a389
4 changed files with 14 additions and 28 deletions

View file

@ -11,7 +11,6 @@ public interface IRuntimeItemProjectionReader
AetheriaRuntimeCatalogItem GetRuntimeItem(Guid guid);
IReadOnlyList<BehaviorData> GetBehaviorProjections(Guid guid);
ItemData Get(Guid guid);
T Get<T>(Guid guid) where T : ItemData;
}
public sealed class AetheriaRuntimeItemCatalog : IRuntimeItemProjectionReader
@ -88,11 +87,6 @@ public sealed class AetheriaRuntimeItemCatalog : IRuntimeItemProjectionReader
return item;
}
public T Get<T>(Guid guid) where T : ItemData
{
return Get(guid) as T;
}
private static ItemData ProjectItem(AetheriaRuntimeCatalogItem item)
{
if (!Guid.TryParse(item.LegacyId, out var id))

View file

@ -53,11 +53,6 @@ public class ItemManager
_logger = logger;
}
public T GetRuntimeItemProjection<T>(Guid id) where T : ItemData
{
return _itemProjections.Get<T>(id);
}
public AetheriaRuntimeCatalogItem GetRuntimeItem(ItemInstance item)
{
var itemId = item?.Data?.ItemId ?? Guid.Empty;