mirror of
https://github.com/transmission/transmission
synced 2024-12-25 09:13:06 +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
|
||||
{
|
||||
NSLog(@"rpcUpdateQueue");
|
||||
|
||||
for (Torrent * torrent in fTorrents)
|
||||
[torrent update];
|
||||
|
||||
|
|
|
@ -75,6 +75,7 @@
|
|||
|
||||
- (void) update;
|
||||
|
||||
- (void) startTransferIgnoringQueue: (BOOL) ignoreQueue;
|
||||
- (void) startTransferNoQueue;
|
||||
- (void) startTransfer;
|
||||
- (void) stopTransfer;
|
||||
|
|
|
@ -300,29 +300,26 @@ int trashDataFile(const char * filename)
|
|||
[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
|
||||
{
|
||||
if ([self alertForRemainingDiskSpace])
|
||||
{
|
||||
tr_torrentStartNow(fHandle);
|
||||
[self update];
|
||||
|
||||
//capture, specifically, stop-seeding settings changing to unlimited
|
||||
[[NSNotificationCenter defaultCenter] postNotificationName: @"UpdateOptions" object: nil];
|
||||
}
|
||||
[self startTransferIgnoringQueue: YES];
|
||||
}
|
||||
|
||||
#warning merge
|
||||
- (void) startTransfer
|
||||
{
|
||||
if ([self alertForRemainingDiskSpace])
|
||||
{
|
||||
tr_torrentStart(fHandle);
|
||||
[self update];
|
||||
|
||||
//capture, specifically, stop-seeding settings changing to unlimited
|
||||
[[NSNotificationCenter defaultCenter] postNotificationName: @"UpdateOptions" object: nil];
|
||||
}
|
||||
[self startTransferIgnoringQueue: NO];
|
||||
}
|
||||
|
||||
- (void) stopTransfer
|
||||
|
|
|
@ -469,7 +469,7 @@
|
|||
#warning image should use new gear
|
||||
NSString * actionImageString;
|
||||
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";
|
||||
else if (!fTracking && fHoverAction)
|
||||
actionImageString = @"ActionHover.png";
|
||||
|
|
Loading…
Reference in a new issue