From 37573c9821f4a6c90328fb30bb6f42370aa69ece Mon Sep 17 00:00:00 2001 From: Mitchell Livingston Date: Wed, 30 Dec 2020 20:18:12 -0500 Subject: [PATCH] Remove unused background gradient variables --- macosx/FilterBarView.h | 1 - macosx/StatusBarView.h | 2 -- macosx/StatusBarView.m | 33 --------------------------------- 3 files changed, 36 deletions(-) diff --git a/macosx/FilterBarView.h b/macosx/FilterBarView.h index 967c3ad99..a43cbb87b 100644 --- a/macosx/FilterBarView.h +++ b/macosx/FilterBarView.h @@ -24,7 +24,6 @@ @interface FilterBarView : NSView { - NSGradient * fGradient; } @end diff --git a/macosx/StatusBarView.h b/macosx/StatusBarView.h index 35529dfb6..7baf21160 100644 --- a/macosx/StatusBarView.h +++ b/macosx/StatusBarView.h @@ -25,8 +25,6 @@ @interface StatusBarView : NSView { - NSGradient * fGradient; - CIImage * fNoiseImage; } @end diff --git a/macosx/StatusBarView.m b/macosx/StatusBarView.m index 251605d50..56ca569b9 100644 --- a/macosx/StatusBarView.m +++ b/macosx/StatusBarView.m @@ -20,8 +20,6 @@ * DEALINGS IN THE SOFTWARE. *****************************************************************************/ -#import - #import "StatusBarView.h" #import "NSApplicationAdditions.h" @@ -33,37 +31,6 @@ @implementation StatusBarView -- (id) initWithFrame: (NSRect) rect -{ - if ((self = [super initWithFrame: rect])) - { - NSColor * lightColor = [NSColor colorWithCalibratedRed: 160.0/255.0 green: 160.0/255.0 blue: 160.0/255.0 alpha: 1.0]; - NSColor * darkColor = [NSColor colorWithCalibratedRed: 155.0/255.0 green: 155.0/255.0 blue: 155.0/255.0 alpha: 1.0]; - fGradient = [[NSGradient alloc] initWithStartingColor: lightColor endingColor: darkColor]; - - CIFilter * randomFilter = [CIFilter filterWithName: @"CIRandomGenerator"]; - [randomFilter setDefaults]; - - fNoiseImage = [randomFilter valueForKey: @"outputImage"]; - - CIFilter * monochromeFilter = [CIFilter filterWithName: @"CIColorMonochrome"]; - [monochromeFilter setDefaults]; - [monochromeFilter setValue: fNoiseImage forKey: @"inputImage"]; - CIColor * monoFilterColor = [CIColor colorWithRed: 1.0 green: 1.0 blue: 1.0]; - [monochromeFilter setValue: monoFilterColor forKey: @"inputColor"]; - fNoiseImage = [monochromeFilter valueForKey:@"outputImage"]; - - [[NSNotificationCenter defaultCenter] addObserver: self selector: @selector(reload) name: NSWindowDidBecomeMainNotification object: [self window]]; - [[NSNotificationCenter defaultCenter] addObserver: self selector: @selector(reload) name: NSWindowDidResignMainNotification object: [self window]]; - } - return self; -} - -- (void) dealloc -{ - [[NSNotificationCenter defaultCenter] removeObserver: self]; -} - - (BOOL) mouseDownCanMoveWindow { return YES;