mirror of
https://github.com/transmission/transmission
synced 2024-12-26 01:27:28 +00:00
remove redundant code
This commit is contained in:
parent
516164e78e
commit
3aba37aa13
4 changed files with 10 additions and 14 deletions
|
@ -4230,8 +4230,6 @@ static void sleepCallback(void * controller, io_service_t y, natural_t messageTy
|
||||||
|
|
||||||
- (void) rpcUpdateQueue
|
- (void) rpcUpdateQueue
|
||||||
{
|
{
|
||||||
NSLog(@"rpcUpdateQueue");
|
|
||||||
|
|
||||||
for (Torrent * torrent in fTorrents)
|
for (Torrent * torrent in fTorrents)
|
||||||
[torrent update];
|
[torrent update];
|
||||||
|
|
||||||
|
|
|
@ -75,6 +75,7 @@
|
||||||
|
|
||||||
- (void) update;
|
- (void) update;
|
||||||
|
|
||||||
|
- (void) startTransferIgnoringQueue: (BOOL) ignoreQueue;
|
||||||
- (void) startTransferNoQueue;
|
- (void) startTransferNoQueue;
|
||||||
- (void) startTransfer;
|
- (void) startTransfer;
|
||||||
- (void) stopTransfer;
|
- (void) stopTransfer;
|
||||||
|
|
|
@ -300,29 +300,26 @@ int trashDataFile(const char * filename)
|
||||||
[self updateTimeMachineExclude];
|
[self updateTimeMachineExclude];
|
||||||
}
|
}
|
||||||
|
|
||||||
|
- (void) startTransferIgnoringQueue: (BOOL) ignoreQueue
|
||||||
|
{
|
||||||
|
if ([self alertForRemainingDiskSpace])
|
||||||
|
{
|
||||||
|
ignoreQueue ? tr_torrentStartNow(fHandle) : tr_torrentStart(fHandle);
|
||||||
|
[self update];
|
||||||
|
|
||||||
|
//capture, specifically, stop-seeding settings changing to unlimited
|
||||||
|
[[NSNotificationCenter defaultCenter] postNotificationName: @"UpdateOptions" object: nil];
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
- (void) startTransferNoQueue
|
- (void) startTransferNoQueue
|
||||||
{
|
{
|
||||||
if ([self alertForRemainingDiskSpace])
|
[self startTransferIgnoringQueue: YES];
|
||||||
{
|
|
||||||
tr_torrentStartNow(fHandle);
|
|
||||||
[self update];
|
|
||||||
|
|
||||||
//capture, specifically, stop-seeding settings changing to unlimited
|
|
||||||
[[NSNotificationCenter defaultCenter] postNotificationName: @"UpdateOptions" object: nil];
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
|
|
||||||
#warning merge
|
|
||||||
- (void) startTransfer
|
- (void) startTransfer
|
||||||
{
|
{
|
||||||
if ([self alertForRemainingDiskSpace])
|
[self startTransferIgnoringQueue: NO];
|
||||||
{
|
|
||||||
tr_torrentStart(fHandle);
|
|
||||||
[self update];
|
|
||||||
|
|
||||||
//capture, specifically, stop-seeding settings changing to unlimited
|
|
||||||
[[NSNotificationCenter defaultCenter] postNotificationName: @"UpdateOptions" object: nil];
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
|
|
||||||
- (void) stopTransfer
|
- (void) stopTransfer
|
||||||
|
|
|
@ -469,7 +469,7 @@
|
||||||
#warning image should use new gear
|
#warning image should use new gear
|
||||||
NSString * actionImageString;
|
NSString * actionImageString;
|
||||||
if (fMouseDownActionButton)
|
if (fMouseDownActionButton)
|
||||||
#warning we can get rid of the on 10.7
|
#warning we can get rid of this on 10.7
|
||||||
actionImageString = @"ActionOn.png";
|
actionImageString = @"ActionOn.png";
|
||||||
else if (!fTracking && fHoverAction)
|
else if (!fTracking && fHoverAction)
|
||||||
actionImageString = @"ActionHover.png";
|
actionImageString = @"ActionHover.png";
|
||||||
|
|
Loading…
Reference in a new issue