mirror of
https://github.com/transmission/transmission.git
synced 2025-12-24 12:28:52 +00:00
get rid of 2 more unnecessary sort methods
This commit is contained in:
@@ -1604,7 +1604,7 @@ void sleepCallBack(void * controller, io_service_t y, natural_t messageType, voi
|
||||
* progressDescriptor = [[[NSSortDescriptor alloc] initWithKey:
|
||||
@"progress" ascending: !asc] autorelease],
|
||||
* ratioDescriptor = [[[NSSortDescriptor alloc] initWithKey:
|
||||
@"ratioSortKey" ascending: !asc] autorelease];
|
||||
@"ratio" ascending: !asc] autorelease];
|
||||
|
||||
descriptors = [[NSArray alloc] initWithObjects: stateDescriptor, progressDescriptor, ratioDescriptor,
|
||||
nameDescriptor, orderDescriptor, nil];
|
||||
@@ -1614,9 +1614,9 @@ void sleepCallBack(void * controller, io_service_t y, natural_t messageType, voi
|
||||
NSSortDescriptor * progressDescriptor = [[[NSSortDescriptor alloc] initWithKey:
|
||||
@"progress" ascending: asc] autorelease],
|
||||
* ratioProgressDescriptor = [[[NSSortDescriptor alloc] initWithKey:
|
||||
@"ratioProgressSortKey" ascending: asc] autorelease],
|
||||
@"progressStopRatio" ascending: asc] autorelease],
|
||||
* ratioDescriptor = [[[NSSortDescriptor alloc] initWithKey:
|
||||
@"ratioSortKey" ascending: asc] autorelease];
|
||||
@"ratio" ascending: asc] autorelease];
|
||||
|
||||
descriptors = [[NSArray alloc] initWithObjects: progressDescriptor, ratioProgressDescriptor, ratioDescriptor,
|
||||
nameDescriptor, orderDescriptor, nil];
|
||||
|
||||
Reference in New Issue
Block a user