1
0
Fork 0
mirror of https://github.com/transmission/transmission synced 2024-12-25 09:13:06 +00:00

remove redundant code

This commit is contained in:
Mitchell Livingston 2011-08-28 00:07:30 +00:00
parent 516164e78e
commit 3aba37aa13
4 changed files with 10 additions and 14 deletions

View file

@ -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];

View file

@ -75,6 +75,7 @@
- (void) update; - (void) update;
- (void) startTransferIgnoringQueue: (BOOL) ignoreQueue;
- (void) startTransferNoQueue; - (void) startTransferNoQueue;
- (void) startTransfer; - (void) startTransfer;
- (void) stopTransfer; - (void) stopTransfer;

View file

@ -300,11 +300,11 @@ int trashDataFile(const char * filename)
[self updateTimeMachineExclude]; [self updateTimeMachineExclude];
} }
- (void) startTransferNoQueue - (void) startTransferIgnoringQueue: (BOOL) ignoreQueue
{ {
if ([self alertForRemainingDiskSpace]) if ([self alertForRemainingDiskSpace])
{ {
tr_torrentStartNow(fHandle); ignoreQueue ? tr_torrentStartNow(fHandle) : tr_torrentStart(fHandle);
[self update]; [self update];
//capture, specifically, stop-seeding settings changing to unlimited //capture, specifically, stop-seeding settings changing to unlimited
@ -312,17 +312,14 @@ int trashDataFile(const char * filename)
} }
} }
#warning merge - (void) startTransferNoQueue
{
[self startTransferIgnoringQueue: YES];
}
- (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

View file

@ -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";