Removed unused classes

This commit is contained in:
michael starke
2016-08-30 12:08:46 +02:00
parent cd47237742
commit da295b9acd
8 changed files with 3 additions and 139 deletions

View File

@@ -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

View File

@@ -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

View File

@@ -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

View File

@@ -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

View File

@@ -26,8 +26,6 @@
#import "KeePassKit/KeePassKit.h" #import "KeePassKit/KeePassKit.h"
#import "MPArrayController.h"
#import "HNHUi/HNHUi.h" #import "HNHUi/HNHUi.h"
typedef NS_ENUM(NSUInteger, MPEntryTab) { typedef NS_ENUM(NSUInteger, MPEntryTab) {
@@ -70,9 +68,9 @@ typedef NS_ENUM(NSUInteger, MPEntryTab) {
self = [super initWithNibName:nibNameOrNil bundle:nibBundleOrNil]; self = [super initWithNibName:nibNameOrNil bundle:nibBundleOrNil];
if (self) { if (self) {
_showPassword = NO; _showPassword = NO;
_attachmentsController = [[MPArrayController alloc] init]; _attachmentsController = [[NSArrayController alloc] init];
_customFieldsController = [[MPArrayController alloc] init]; _customFieldsController = [[NSArrayController alloc] init];
_windowAssociationsController = [[MPArrayController alloc] init]; _windowAssociationsController = [[NSArrayController alloc] init];
_attachmentTableDelegate = [[MPAttachmentTableViewDelegate alloc] init]; _attachmentTableDelegate = [[MPAttachmentTableViewDelegate alloc] init];
_customFieldTableDelegate = [[MPCustomFieldTableViewDelegate alloc] init]; _customFieldTableDelegate = [[MPCustomFieldTableViewDelegate alloc] init];
_attachmentDataSource = [[MPAttachmentTableDataSource alloc] init]; _attachmentDataSource = [[MPAttachmentTableDataSource alloc] init];

View File

@@ -10,7 +10,6 @@
#import "MPDocument.h" #import "MPDocument.h"
#import "MPPasteBoardController.h" #import "MPPasteBoardController.h"
#import "MPValueTransformerHelper.h" #import "MPValueTransformerHelper.h"
#import "MPObjectController.h"
#import "KeePassKit/KeePassKit.h" #import "KeePassKit/KeePassKit.h"

View File

@@ -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

View File

@@ -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