From 9bd793e337151c39fc6aa5d0bb166df7261eff5f Mon Sep 17 00:00:00 2001 From: Evan Hemsley Date: Wed, 18 Mar 2020 14:14:07 -0700 Subject: [PATCH] remove now unnecessary type lookup --- encompass-cs/Collections/ComponentStore.cs | 1 - 1 file changed, 1 deletion(-) diff --git a/encompass-cs/Collections/ComponentStore.cs b/encompass-cs/Collections/ComponentStore.cs index dbe1a95..aee17e8 100644 --- a/encompass-cs/Collections/ComponentStore.cs +++ b/encompass-cs/Collections/ComponentStore.cs @@ -33,7 +33,6 @@ namespace Encompass private TypedComponentStore Lookup() where TComponent : struct, IComponent { - if (!Stores.ContainsKey(typeof(TComponent))) { RegisterComponentType(); } return Stores[typeof(TComponent)] as TypedComponentStore; }