Code cleanup: Remove unneeded #imports, empty methods, declare id return type when left out, commit irrelevant whitespace flagged as change.

This commit is contained in:
André Berg
2010-03-24 09:02:45 +01:00
parent b6272c082f
commit 4832f3b59f
8 changed files with 7 additions and 15 deletions
+2 -2
View File
@@ -21,13 +21,13 @@
- (void)keyDown:(NSEvent *)event
{
NSString* character = [event charactersIgnoringModifiers];
// Pass on command-shift up/down to the responder. We want the splitview to capture this.
if ([event modifierFlags] & NSShiftKeyMask && [event modifierFlags] & NSCommandKeyMask && ([event keyCode] == 0x7E || [event keyCode] == 0x7D)) {
[self.nextResponder keyDown:event];
return;
}
if ([character isEqualToString:@" "]) {
if (controller.selectedCommitDetailsIndex == 0) {
if ([event modifierFlags] & NSShiftKeyMask)
+2 -2
View File
@@ -14,6 +14,6 @@
NSString *repositoryPath;
}
@property (copy) NSString *repositoryPath;
- init;
- initWithRepositoryPath:(NSString *)path;
- (id) init;
- (id) initWithRepositoryPath:(NSString *)path;
@end
+2 -2
View File
@@ -12,13 +12,13 @@
@implementation PBGitConfig
@synthesize repositoryPath;
- init
- (id) init
{
repositoryPath = nil;
return self;
}
- initWithRepositoryPath:(NSString *)path
- (id) initWithRepositoryPath:(NSString *)path
{
repositoryPath = path;
return self;
-2
View File
@@ -250,8 +250,6 @@ static NSString * repositoryBasePath = nil;
- (void) reloadRefs
{
_headRef = nil;
BOOL ret = NO;
refs = [NSMutableDictionary dictionary];
NSMutableArray *oldBranches = [branches mutableCopy];
+1 -1
View File
@@ -42,7 +42,7 @@
- (void)awakeFromNib
{
[super awakeFromNib];
window.contentView = self.view;
window.contentView = [self view];
[self populateList];
historyViewController = [[PBGitHistoryController alloc] initWithRepository:repository superController:superController];
-1
View File
@@ -9,7 +9,6 @@
#import "PBRefController.h"
#import "PBGitRevisionCell.h"
#import "PBRefMenuItem.h"
#import "KBPopUpToolbarItem.h"
#import "PBCreateBranchSheet.h"
#import "PBCreateTagSheet.h"
#import "PBGitDefaults.h"
-1
View File
@@ -28,5 +28,4 @@
- (NSResponder *)firstResponder;
- (IBAction) refresh:(id)sender;
- (IBAction) refresh:(id)sender;
@end
-4
View File
@@ -43,10 +43,6 @@
{
}
- (IBAction) refresh: sender
{
}
- (NSResponder *)firstResponder;
{
return nil;