From 6dc71e1a45f5ba3437ebb37872129c62bb36e570 Mon Sep 17 00:00:00 2001 From: stuconnolly Date: Thu, 3 Jan 2013 22:55:34 +0000 Subject: Enable the removal of the old favorites data in the preferences plist now that we know it's stable. --- Source/SPPreferencesUpgrade.m | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/Source/SPPreferencesUpgrade.m b/Source/SPPreferencesUpgrade.m index 3c709153..5b8e42be 100644 --- a/Source/SPPreferencesUpgrade.m +++ b/Source/SPPreferencesUpgrade.m @@ -371,8 +371,7 @@ void SPMigrateConnectionFavoritesData(void) [prefs setInteger:[[[favorites objectAtIndex:defaultFavoriteIndex] objectForKey:SPFavoriteIDKey] integerValue] forKey:SPDefaultFavorite]; } - // TOOD: Favorites migration - only uncomment when we want to remove backwards compatibility - //[prefs removeObjectForKey:@"LastFavoriteIndex"]; + [prefs removeObjectForKey:@"LastFavoriteIndex"]; } NSDictionary *newFavorites = [NSDictionary dictionaryWithObject:[NSDictionary dictionaryWithObjectsAndKeys:NSLocalizedString(@"Favorites", @"favorites label"), SPFavoritesGroupNameKey, favorites, SPFavoriteChildrenKey, nil] forKey:SPFavoritesRootKey]; @@ -390,8 +389,7 @@ void SPMigrateConnectionFavoritesData(void) NSLog(@"Error migrating favorites data: %@", [error localizedDescription]); } else { - // TOOD: Favorites migration - only uncomment when we want to remove backwards compatibility - //[prefs removeObjectForKey:SPOldFavoritesKey]; + [prefs removeObjectForKey:SPOldFavoritesKey]; } } else if (errorString) { -- cgit v1.2.3