mirror of
https://github.com/MacPass/MacPass.git
synced 2025-12-14 10:32:26 +00:00
Removed unused classes
This commit is contained in:
@@ -1,13 +0,0 @@
|
||||
//
|
||||
// MPArrayController.h
|
||||
// MacPass
|
||||
//
|
||||
// Created by Michael Starke on 27/08/16.
|
||||
// Copyright © 2016 HicknHack Software GmbH. All rights reserved.
|
||||
//
|
||||
|
||||
#import <Cocoa/Cocoa.h>
|
||||
|
||||
@interface MPArrayController : NSArrayController
|
||||
|
||||
@end
|
||||
@@ -1,18 +0,0 @@
|
||||
//
|
||||
// MPArrayController.m
|
||||
// MacPass
|
||||
//
|
||||
// Created by Michael Starke on 27/08/16.
|
||||
// Copyright © 2016 HicknHack Software GmbH. All rights reserved.
|
||||
//
|
||||
|
||||
#import "MPArrayController.h"
|
||||
|
||||
@implementation MPArrayController
|
||||
|
||||
- (void)setValue:(id)value forKeyPath:(NSString *)keyPath {
|
||||
NSLog(@"%@ setValue:forKeyPath:%@", NSStringFromClass([self class]), keyPath);
|
||||
[super setValue:value forKeyPath:keyPath];
|
||||
}
|
||||
|
||||
@end
|
||||
@@ -1,17 +0,0 @@
|
||||
//
|
||||
// MPCustomFieldView.h
|
||||
// MacPass
|
||||
//
|
||||
// Created by Michael Starke on 27.06.13.
|
||||
// Copyright (c) 2013 HicknHack Software GmbH. All rights reserved.
|
||||
//
|
||||
|
||||
#import <Cocoa/Cocoa.h>
|
||||
|
||||
@interface MPCustomFieldView : NSView
|
||||
|
||||
@property (weak) IBOutlet NSTextField *labelTextField;
|
||||
@property (weak) IBOutlet NSTextField *valueTextField;
|
||||
@property (weak) IBOutlet NSButton *deleteButton;
|
||||
|
||||
@end
|
||||
@@ -1,14 +0,0 @@
|
||||
//
|
||||
// MPCustomFieldView.m
|
||||
// MacPass
|
||||
//
|
||||
// Created by Michael Starke on 27.06.13.
|
||||
// Copyright (c) 2013 HicknHack Software GmbH. All rights reserved.
|
||||
//
|
||||
|
||||
#import "MPCustomFieldView.h"
|
||||
|
||||
@implementation MPCustomFieldView
|
||||
|
||||
|
||||
@end
|
||||
@@ -26,8 +26,6 @@
|
||||
|
||||
#import "KeePassKit/KeePassKit.h"
|
||||
|
||||
#import "MPArrayController.h"
|
||||
|
||||
#import "HNHUi/HNHUi.h"
|
||||
|
||||
typedef NS_ENUM(NSUInteger, MPEntryTab) {
|
||||
@@ -70,9 +68,9 @@ typedef NS_ENUM(NSUInteger, MPEntryTab) {
|
||||
self = [super initWithNibName:nibNameOrNil bundle:nibBundleOrNil];
|
||||
if (self) {
|
||||
_showPassword = NO;
|
||||
_attachmentsController = [[MPArrayController alloc] init];
|
||||
_customFieldsController = [[MPArrayController alloc] init];
|
||||
_windowAssociationsController = [[MPArrayController alloc] init];
|
||||
_attachmentsController = [[NSArrayController alloc] init];
|
||||
_customFieldsController = [[NSArrayController alloc] init];
|
||||
_windowAssociationsController = [[NSArrayController alloc] init];
|
||||
_attachmentTableDelegate = [[MPAttachmentTableViewDelegate alloc] init];
|
||||
_customFieldTableDelegate = [[MPCustomFieldTableViewDelegate alloc] init];
|
||||
_attachmentDataSource = [[MPAttachmentTableDataSource alloc] init];
|
||||
|
||||
@@ -10,7 +10,6 @@
|
||||
#import "MPDocument.h"
|
||||
#import "MPPasteBoardController.h"
|
||||
#import "MPValueTransformerHelper.h"
|
||||
#import "MPObjectController.h"
|
||||
|
||||
#import "KeePassKit/KeePassKit.h"
|
||||
|
||||
|
||||
@@ -1,16 +0,0 @@
|
||||
//
|
||||
// MPObjectController.h
|
||||
// MacPass
|
||||
//
|
||||
// Created by Michael Starke on 18/08/16.
|
||||
// Copyright © 2016 HicknHack Software GmbH. All rights reserved.
|
||||
//
|
||||
|
||||
#import <Cocoa/Cocoa.h>
|
||||
#import "MPModelChangeObserving.h"
|
||||
|
||||
@interface MPObjectController : NSObjectController <MPModelChangeObserving>
|
||||
|
||||
@property (weak) NSDocument *document;
|
||||
|
||||
@end
|
||||
@@ -1,55 +0,0 @@
|
||||
//
|
||||
// MPObjectController.m
|
||||
// MacPass
|
||||
//
|
||||
// Created by Michael Starke on 18/08/16.
|
||||
// Copyright © 2016 HicknHack Software GmbH. All rights reserved.
|
||||
//
|
||||
|
||||
#import "MPObjectController.h"
|
||||
|
||||
@interface MPObjectController ()
|
||||
@property (strong) NSMutableSet *observedModelKeyPaths;
|
||||
@end
|
||||
|
||||
@implementation MPObjectController
|
||||
|
||||
- (void)discardEditing {
|
||||
[super discardEditing];
|
||||
}
|
||||
|
||||
- (BOOL)commitEditing {
|
||||
return [super commitEditing];
|
||||
}
|
||||
|
||||
- (void)setValue:(id)value forKeyPath:(NSString *)keyPath {
|
||||
BOOL observerd = NO;
|
||||
for(NSString *observedKeyPath in self.observedModelKeyPaths) {
|
||||
observerd = ([keyPath hasPrefix:observedKeyPath]);
|
||||
if(observerd) {
|
||||
break;
|
||||
}
|
||||
}
|
||||
if(observerd) {
|
||||
|
||||
}
|
||||
[super setValue:value forKeyPath:keyPath];
|
||||
}
|
||||
|
||||
- (void)didChangeModel {
|
||||
|
||||
}
|
||||
|
||||
- (void)willChangeModel {
|
||||
|
||||
}
|
||||
|
||||
- (void)beginObservingModelKeyPath:(NSString *)keyPath {
|
||||
[self.observedModelKeyPaths addObject:keyPath];
|
||||
}
|
||||
|
||||
- (void)endObservingModelKeyPath:(NSString *)keyPath {
|
||||
[self.observedModelKeyPaths removeObject:keyPath];
|
||||
}
|
||||
|
||||
@end
|
||||
Reference in New Issue
Block a user