mirror of
https://github.com/transmission/transmission
synced 2025-02-06 22:42:33 +00:00
Remove unused background gradient variables
This commit is contained in:
parent
2c7a999902
commit
37573c9821
3 changed files with 0 additions and 36 deletions
|
@ -24,7 +24,6 @@
|
||||||
|
|
||||||
@interface FilterBarView : NSView
|
@interface FilterBarView : NSView
|
||||||
{
|
{
|
||||||
NSGradient * fGradient;
|
|
||||||
}
|
}
|
||||||
|
|
||||||
@end
|
@end
|
||||||
|
|
|
@ -25,8 +25,6 @@
|
||||||
|
|
||||||
@interface StatusBarView : NSView
|
@interface StatusBarView : NSView
|
||||||
{
|
{
|
||||||
NSGradient * fGradient;
|
|
||||||
CIImage * fNoiseImage;
|
|
||||||
}
|
}
|
||||||
|
|
||||||
@end
|
@end
|
||||||
|
|
|
@ -20,8 +20,6 @@
|
||||||
* DEALINGS IN THE SOFTWARE.
|
* DEALINGS IN THE SOFTWARE.
|
||||||
*****************************************************************************/
|
*****************************************************************************/
|
||||||
|
|
||||||
#import <QuartzCore/QuartzCore.h>
|
|
||||||
|
|
||||||
#import "StatusBarView.h"
|
#import "StatusBarView.h"
|
||||||
#import "NSApplicationAdditions.h"
|
#import "NSApplicationAdditions.h"
|
||||||
|
|
||||||
|
@ -33,37 +31,6 @@
|
||||||
|
|
||||||
@implementation StatusBarView
|
@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
|
- (BOOL) mouseDownCanMoveWindow
|
||||||
{
|
{
|
||||||
return YES;
|
return YES;
|
||||||
|
|
Loading…
Reference in a new issue