Two more small performance wins

This commit is contained in:
Adlai Holler
2016-07-12 14:14:19 -07:00
parent 6aad142f2e
commit 9cd606d182
2 changed files with 2 additions and 3 deletions

View File

@@ -302,8 +302,7 @@ static void *ASVideoPlayerNodeContext = &ASVideoPlayerNodeContext;
- (void)removeControls
{
NSArray *controls = [_cachedControls allValues];
for (ASDisplayNode *node in controls) {
for (ASDisplayNode *node in [_cachedControls objectEnumerator]) {
[node removeFromSupernode];
}