mirror of
https://github.com/transmission/transmission
synced 2025-01-31 19:34:05 +00:00
get rid of pointless variable
This commit is contained in:
parent
dcd012a12c
commit
0ae40e8200
2 changed files with 2 additions and 7 deletions
|
@ -30,8 +30,6 @@
|
|||
|
||||
@interface TorrentCell : NSCell
|
||||
{
|
||||
BOOL fStatusRegular;
|
||||
|
||||
NSImage * fProgressWhite, * fProgressBlue, * fProgressGray, * fProgressGreen,
|
||||
* fProgressAdvanced, * fProgressEndWhite, * fProgressEndBlue,
|
||||
* fProgressEndGray, * fProgressEndGreen, * fProgressLightGreen,
|
||||
|
|
|
@ -44,8 +44,6 @@
|
|||
if ((self = [super init]))
|
||||
{
|
||||
fDefaults = [NSUserDefaults standardUserDefaults];
|
||||
|
||||
fStatusRegular = [fDefaults boolForKey: @"SmallStatusRegular"];
|
||||
|
||||
NSSize startSize = NSMakeSize(100.0, BAR_HEIGHT);
|
||||
|
||||
|
@ -181,8 +179,7 @@
|
|||
|
||||
- (void) toggleMinimalStatus
|
||||
{
|
||||
fStatusRegular = !fStatusRegular;
|
||||
[fDefaults setBool: fStatusRegular forKey: @"SmallStatusRegular"];
|
||||
[fDefaults setBool: ![fDefaults boolForKey: @"SmallStatusRegular"] forKey: @"SmallStatusRegular"];
|
||||
}
|
||||
|
||||
- (void) drawWithFrame: (NSRect) cellFrame inView: (NSView *) view
|
||||
|
@ -288,7 +285,7 @@
|
|||
NSString * nameString = [info objectForKey: @"Name"];
|
||||
NSSize nameSize = [nameString sizeWithAttributes: nameAttributes];
|
||||
|
||||
NSString * statusString = !fStatusRegular && [[info objectForKey: @"Active"] boolValue]
|
||||
NSString * statusString = ![fDefaults boolForKey: @"SmallStatusRegular"] && [[info objectForKey: @"Active"] boolValue]
|
||||
? [info objectForKey: @"RemainingTimeString"]
|
||||
: [info objectForKey: @"ShortStatusString"];
|
||||
NSSize statusSize = [statusString sizeWithAttributes: statusAttributes];
|
||||
|
|
Loading…
Reference in a new issue