Removed unnecessary @synchronized's.

This commit is contained in:
Andy Matuschak committed 2008-06-30 21:55:15 -07:00
1 parent c9bdb6ef04
commit 4b6fc55056
1 file changed
+4 -7
+4 -7
View File
@@ -91,13 +91,10 @@ static SUUpdater *sharedUpdater = nil;
- (void)scheduleNextUpdateCheck
{
@synchronized (checkTimer)
if (checkTimer)
{
if (checkTimer)
{
[checkTimer invalidate];
checkTimer = nil;
}
[checkTimer invalidate];
checkTimer = nil;
}
if (![self shouldScheduleUpdateCheck]) return;
@@ -128,7 +125,7 @@ static SUUpdater *sharedUpdater = nil;
- (void)checkForUpdatesWithDriver:(SUUpdateDriver *)d
{
if ([self updateInProgress]) { return; }
@synchronized (checkTimer) { if (checkTimer) { [checkTimer invalidate]; checkTimer = nil; } }
if (checkTimer) { [checkTimer invalidate]; checkTimer = nil; }
driver = [d retain];
if ([driver delegate] == nil) { [driver setDelegate:delegate]; }