mirror of
https://github.com/MacPass/MacPass.git
synced 2025-12-13 08:52:20 +00:00
removed unused parameter
This commit is contained in:
@@ -42,7 +42,7 @@
|
||||
|
||||
@property (copy) NSArray<MPPickfieldTableModelRowItem *> *items;
|
||||
|
||||
- (instancetype)initWithEntry:(KPKEntry *)entry inDocument:(MPDocument *)document;
|
||||
- (instancetype)initWithEntry:(KPKEntry *)entry;
|
||||
- (MPPickfieldTableModelRowItem *)itemAtIndex:(NSUInteger)index;
|
||||
|
||||
@end
|
||||
|
||||
@@ -68,15 +68,15 @@
|
||||
|
||||
@implementation MPPickfieldTableModel
|
||||
|
||||
- (instancetype)initWithEntry:(KPKEntry *)entry inDocument:(MPDocument *)document {
|
||||
- (instancetype)initWithEntry:(KPKEntry *)entry {
|
||||
self = [super init];
|
||||
if(self) {
|
||||
[self _setupItemsForEntry:entry document:document];
|
||||
[self _setupItemsForEntry:entry];
|
||||
}
|
||||
return self;
|
||||
}
|
||||
|
||||
- (void)_setupItemsForEntry:(KPKEntry *)entry document:(MPDocument *)document {
|
||||
- (void)_setupItemsForEntry:(KPKEntry *)entry {
|
||||
/* Default attributes */
|
||||
NSMutableArray *items = [[NSMutableArray alloc] init];
|
||||
[items addObject:[MPPickfieldTableModelRowItem groupItemWithName:NSLocalizedString(@"ENTRY_DEFAULT_ATTRIBUTES", @"Group row for entry attributes")]];
|
||||
|
||||
@@ -49,7 +49,7 @@ typedef NS_ENUM(NSUInteger, MPPickfieldTableColumn) {
|
||||
|
||||
- (void)viewDidLoad {
|
||||
[super viewDidLoad];
|
||||
self.tableModel = [[MPPickfieldTableModel alloc] initWithEntry:self.representedEntry inDocument:nil];
|
||||
self.tableModel = [[MPPickfieldTableModel alloc] initWithEntry:self.representedEntry];
|
||||
}
|
||||
|
||||
- (KPKEntry *)representedEntry {
|
||||
|
||||
Reference in New Issue
Block a user