From 211555639db7d3e15daa3459a3041f18334ff8a4 Mon Sep 17 00:00:00 2001 From: Andy Matuschak Date: Fri, 25 Jul 2008 08:46:46 -0700 Subject: [PATCH] Removed potentially dangerous KVO magic. --- SUUpdater.m | 4 ---- 1 file changed, 4 deletions(-) diff --git a/SUUpdater.m b/SUUpdater.m index 555100c1..726b4c73 100644 --- a/SUUpdater.m +++ b/SUUpdater.m @@ -210,10 +210,6 @@ static NSString *SUUpdaterDefaultsObservationContext = @"SUUpdaterDefaultsObserv // Or we may get this from the developer and from our own KVO observation, this will effectively coalesce them. [[self class] cancelPreviousPerformRequestsWithTarget:self selector:@selector(resetUpdateCycle) object:nil]; [self performSelector:@selector(resetUpdateCycle) withObject:nil afterDelay:15]; - if ([keyPath rangeOfString:SUEnableAutomaticChecksKey].location != NSNotFound) - [self didChangeValueForKey:@"automaticallyChecksForUpdates"]; - else if ([keyPath rangeOfString:SUScheduledCheckIntervalKey].location != NSNotFound) - [self didChangeValueForKey:@"updateCheckInterval"]; [self resetUpdateCycle]; } else