diff --git a/MacPass/MPPickfieldTableModel.h b/MacPass/MPPickfieldTableModel.h index b47b5dbd..7ac9de4a 100644 --- a/MacPass/MPPickfieldTableModel.h +++ b/MacPass/MPPickfieldTableModel.h @@ -42,7 +42,7 @@ @property (copy) NSArray *items; -- (instancetype)initWithEntry:(KPKEntry *)entry inDocument:(MPDocument *)document; +- (instancetype)initWithEntry:(KPKEntry *)entry; - (MPPickfieldTableModelRowItem *)itemAtIndex:(NSUInteger)index; @end diff --git a/MacPass/MPPickfieldTableModel.m b/MacPass/MPPickfieldTableModel.m index 30f488cc..ae430df7 100644 --- a/MacPass/MPPickfieldTableModel.m +++ b/MacPass/MPPickfieldTableModel.m @@ -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")]]; diff --git a/MacPass/MPPickfieldViewController.m b/MacPass/MPPickfieldViewController.m index 4e757eb9..208149ef 100644 --- a/MacPass/MPPickfieldViewController.m +++ b/MacPass/MPPickfieldViewController.m @@ -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 {