remove now unnecessary type lookup
continuous-integration/drone/push Build is passing Details

pull/2/head
Evan Hemsley 2020-03-18 14:14:07 -07:00
parent 1c3c6c6b69
commit 9bd793e337
1 changed files with 0 additions and 1 deletions

View File

@ -33,7 +33,6 @@ namespace Encompass
private TypedComponentStore<TComponent> Lookup<TComponent>() where TComponent : struct, IComponent private TypedComponentStore<TComponent> Lookup<TComponent>() where TComponent : struct, IComponent
{ {
if (!Stores.ContainsKey(typeof(TComponent))) { RegisterComponentType<TComponent>(); }
return Stores[typeof(TComponent)] as TypedComponentStore<TComponent>; return Stores[typeof(TComponent)] as TypedComponentStore<TComponent>;
} }