From caa52b27803bc2db507710b04ae2ad19e116dfbc Mon Sep 17 00:00:00 2001 From: Chris Forbes Date: Thu, 17 Mar 2011 21:51:33 +1300 Subject: [PATCH] remove CachedView --- OpenRA.FileFormats/Primitives/Set.cs | 18 ------------------ 1 file changed, 18 deletions(-) diff --git a/OpenRA.FileFormats/Primitives/Set.cs b/OpenRA.FileFormats/Primitives/Set.cs index 176aba7c21..35b30971aa 100755 --- a/OpenRA.FileFormats/Primitives/Set.cs +++ b/OpenRA.FileFormats/Primitives/Set.cs @@ -45,22 +45,4 @@ namespace OpenRA.Collections return GetEnumerator(); } } - - public class CachedView : Set - { - public CachedView( Set set, Func include, Func store ) - : this( set, include, x => new[] { store( x ) } ) - { - } - - public CachedView( Set set, Func include, Func> store ) - { - foreach( var t in set ) - if( include( t ) ) - store( t ).Do( x => Add( x ) ); - - set.OnAdd += obj => { if( include( obj ) ) store( obj ).Do( x => Add( x ) ); }; - set.OnRemove += obj => { if( include( obj ) ) store( obj ).Do( x => Remove( x ) ); }; - } - } }