mirror of
https://github.com/transmission/transmission.git
synced 2025-12-24 12:28:52 +00:00
remove unused parameters from a method
This commit is contained in:
@@ -48,7 +48,7 @@
|
||||
- (NSColor *) colorForIndex: (int) index;
|
||||
- (NSColor *) setColor: (NSColor *) color forIndex: (int) index;
|
||||
|
||||
- (void) addGroupWithName: (NSString *) name color: (NSColor *) color;
|
||||
- (void) addNewGroup;
|
||||
- (void) removeGroupWithRowIndexes: (NSIndexSet *) rowIndexes;
|
||||
|
||||
- (NSIndexSet *) moveGroupsAtRowIndexes: (NSIndexSet *) indexes toRow: (int) newRow oldSelected: (NSIndexSet *) selectedIndexes;
|
||||
|
||||
@@ -170,7 +170,7 @@ GroupsController * fGroupsInstance = nil;
|
||||
[[NSNotificationCenter defaultCenter] postNotificationName: @"UpdateGroups" object: self];
|
||||
}
|
||||
|
||||
- (void) addGroupWithName: (NSString *) name color: (NSColor *) color
|
||||
- (void) addNewGroup
|
||||
{
|
||||
//find the lowest index
|
||||
int index;
|
||||
|
||||
@@ -164,7 +164,7 @@ GroupsWindowController * fGroupsWindowInstance = nil;
|
||||
switch ([[sender cell] tagForSegment: [sender selectedSegment]])
|
||||
{
|
||||
case ADD_TAG:
|
||||
[[GroupsController groups] addGroupWithName: @"" color: [NSColor cyanColor]];
|
||||
[[GroupsController groups] addNewGroup];
|
||||
|
||||
[fTableView reloadData];
|
||||
[fTableView deselectAll: self];
|
||||
|
||||
Reference in New Issue
Block a user