Delete dead runtime item projection bridge
This commit is contained in:
parent
6a465da23e
commit
d15418a389
4 changed files with 14 additions and 28 deletions
|
|
@ -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))
|
||||
|
|
|
|||
|
|
@ -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;
|
||||
|
|
|
|||
Loading…
Reference in a new issue