remove a redundant method from queries.

This commit is contained in:
Chris Forbes
2010-12-27 14:39:19 +13:00
parent 439bb7d02f
commit 4a94cf656b
6 changed files with 8 additions and 13 deletions

View File

@@ -167,7 +167,7 @@ namespace OpenRA
if (!DisableTick)
{
actors.Do( x => x.Tick() );
Queries.WithTraitMultiple<ITick>().DoTimed( x =>
Queries.WithTrait<ITick>().DoTimed( x =>
{
x.Trait.Tick( x.Actor );
}, "[{2}] Trait: {0} ({1:0.000} ms)", Game.Settings.Debug.LongTickThreshold );
@@ -241,11 +241,6 @@ namespace OpenRA
return ret;
}
public IEnumerable<TraitPair<T>> WithTraitMultiple<T>()
{
return world.traitDict.ActorsWithTraitMultiple<T>( world );
}
public class OwnedByCachedView : CachedView<Actor, Actor>
{
readonly TypeDictionary hasTrait = new TypeDictionary();