mirror of
https://github.com/transmission/transmission
synced 2025-01-31 19:34:05 +00:00
remove an unused method; trivial type changes
This commit is contained in:
parent
5b2f63e781
commit
d4baaede82
5 changed files with 5 additions and 12 deletions
|
@ -26,7 +26,7 @@
|
|||
|
||||
@interface CTGradient (ProgressBar)
|
||||
|
||||
+ (CTGradient *) progressGradientForRed: (float) redComponent green: (float) greenComponent blue: (float) blueComponent;
|
||||
+ (CTGradient *) progressGradientForRed: (CGFloat) redComponent green: (CGFloat) greenComponent blue: (CGFloat) blueComponent;
|
||||
|
||||
+ (CTGradient *)progressWhiteGradient;
|
||||
+ (CTGradient *)progressGrayGradient;
|
||||
|
|
|
@ -26,7 +26,7 @@
|
|||
|
||||
@implementation CTGradient (ProgressBar)
|
||||
|
||||
+ (CTGradient *) progressGradientForRed: (float) redComponent green: (float) greenComponent blue: (float) blueComponent
|
||||
+ (CTGradient *) progressGradientForRed: (CGFloat) redComponent green: (CGFloat) greenComponent blue: (CGFloat) blueComponent
|
||||
{
|
||||
CTGradientElement color1;
|
||||
color1.red = redComponent;
|
||||
|
|
|
@ -155,7 +155,7 @@
|
|||
if (multifile)
|
||||
{
|
||||
NSString * fileString;
|
||||
int count = fInfo->fileCount;
|
||||
NSInteger count = fInfo->fileCount;
|
||||
if (count != 1)
|
||||
fileString = [NSString stringWithFormat: NSLocalizedString(@"%d files", "Create torrent -> info"), count];
|
||||
else
|
||||
|
@ -487,12 +487,12 @@
|
|||
NSWindow * window = [self window];
|
||||
|
||||
NSRect windowRect = [window frame];
|
||||
float difference = [fProgressView frame].size.height - [[window contentView] frame].size.height;
|
||||
CGFloat difference = [fProgressView frame].size.height - [[window contentView] frame].size.height;
|
||||
windowRect.origin.y -= difference;
|
||||
windowRect.size.height += difference;
|
||||
|
||||
//don't allow vertical resizing
|
||||
float height = windowRect.size.height;
|
||||
CGFloat height = windowRect.size.height;
|
||||
[window setMinSize: NSMakeSize([window minSize].width, height)];
|
||||
[window setMaxSize: NSMakeSize([window maxSize].width, height)];
|
||||
|
||||
|
|
|
@ -64,7 +64,6 @@
|
|||
+ (void) setHandle: (tr_handle *) handle;
|
||||
+ (tr_handle *) handle;
|
||||
|
||||
- (void) updatePortField;
|
||||
- (void) setPort: (id) sender;
|
||||
- (void) setNat: (id) sender;
|
||||
- (void) updatePortStatus;
|
||||
|
|
|
@ -322,12 +322,6 @@ tr_handle * fHandle;
|
|||
TOOLBAR_PEERS, TOOLBAR_NETWORK, TOOLBAR_REMOTE, nil];
|
||||
}
|
||||
|
||||
//used by ipc
|
||||
- (void) updatePortField
|
||||
{
|
||||
[fPortField setIntValue: [fDefaults integerForKey: @"BindPort"]];
|
||||
}
|
||||
|
||||
- (void) setPort: (id) sender
|
||||
{
|
||||
int port = [sender intValue];
|
||||
|
|
Loading…
Reference in a new issue