Adium

Changeset 24260

Show
Ignore:
Timestamp:
07/04/2008 06:20:12 PM (6 months ago)
Author:
catfish_man
Message:

Fix two dead stores static analysis caught. These loops were totally broken, but thankfully they were also redundant so it hadno symptoms.

Files:

Legend:

Unmodified
Added
Removed
Modified
Copied
Moved
  • trunk/Source/AIPreferenceContainer.m

    r24054 r24260  
    424424         
    425425        [self setPreferenceChangedNotificationsEnabled:NO]; 
    426  
    427         //Will change all old keys 
    428         enumerator = [oldKeys objectEnumerator];         
    429         while ((key = [enumerator nextObject])) { 
    430                 [self willChangeValueForKey:@"key"]; 
    431         } 
    432426         
    433427        [self setValuesForKeysWithDictionary:inPreferences]; 
    434          
    435         //Did change all old keys 
    436         enumerator = [oldKeys objectEnumerator];         
    437         while ((key = [enumerator nextObject])) { 
    438                 [self didChangeValueForKey:@"key"]; 
    439         } 
    440428         
    441429        [self setPreferenceChangedNotificationsEnabled:YES];