From d5011bfe74863e538f9beff5548b18d6b78bb261 Mon Sep 17 00:00:00 2001 From: Mitchell Livingston Date: Sun, 6 Aug 2006 23:42:56 +0000 Subject: [PATCH] small cleanup --- macosx/BarButton.m | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/macosx/BarButton.m b/macosx/BarButton.m index e572f129f..2c8f7564a 100644 --- a/macosx/BarButton.m +++ b/macosx/BarButton.m @@ -252,8 +252,7 @@ - (void) setForActive: (NSNotification *) notification { - NSWindow * window; - if (!(window = [notification object]) || window != [self window]) + if ([notification object] != [self window]) return; if ([self image] == fButtonSelectedDim) @@ -267,8 +266,7 @@ - (void) setForInactive: (NSNotification *) notification { - NSWindow * window; - if (!(window = [notification object]) || window != [self window]) + if ([notification object] != [self window]) return; [self setImage: [self image] == fButtonSelected ? fButtonSelectedDim : fButtonNormalDim];