BBGamelib.CCSpriteFrameCache.removeSpriteFramesFromDictionary C# (CSharp) Method

removeSpriteFramesFromDictionary() private method

private removeSpriteFramesFromDictionary ( NSDictionary dictionary ) : void
dictionary NSDictionary
return void
		void removeSpriteFramesFromDictionary(NSDictionary dictionary)
		{
			NSDictionary framesDict = dictionary.objectForKey<NSDictionary>("frames");
//			List<string> keysToRemove = new List<string> ();

			var enumerator = framesDict.GetEnumerator();
			while (enumerator.MoveNext()) {
				KeyValuePair<object, object> kv = enumerator.Current;
				string frameDictKey = (string)kv.Key;
				_spriteFrames.Remove(frameDictKey);
			}
		}
		/** Removes unused sprite frames.