mirror of
https://github.com/kennethreitz-archive/gitx.git
synced 2026-06-05 23:40:18 +00:00
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:
+2
-2
@@ -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
@@ -14,6 +14,6 @@
|
||||
NSString *repositoryPath;
|
||||
}
|
||||
@property (copy) NSString *repositoryPath;
|
||||
- init;
|
||||
- initWithRepositoryPath:(NSString *)path;
|
||||
- (id) init;
|
||||
- (id) initWithRepositoryPath:(NSString *)path;
|
||||
@end
|
||||
|
||||
+2
-2
@@ -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;
|
||||
|
||||
@@ -250,8 +250,6 @@ static NSString * repositoryBasePath = nil;
|
||||
- (void) reloadRefs
|
||||
{
|
||||
_headRef = nil;
|
||||
BOOL ret = NO;
|
||||
|
||||
refs = [NSMutableDictionary dictionary];
|
||||
NSMutableArray *oldBranches = [branches mutableCopy];
|
||||
|
||||
|
||||
@@ -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];
|
||||
|
||||
@@ -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"
|
||||
|
||||
@@ -28,5 +28,4 @@
|
||||
- (NSResponder *)firstResponder;
|
||||
- (IBAction) refresh:(id)sender;
|
||||
|
||||
- (IBAction) refresh:(id)sender;
|
||||
@end
|
||||
|
||||
@@ -43,10 +43,6 @@
|
||||
{
|
||||
}
|
||||
|
||||
- (IBAction) refresh: sender
|
||||
{
|
||||
}
|
||||
|
||||
- (NSResponder *)firstResponder;
|
||||
{
|
||||
return nil;
|
||||
|
||||
Reference in New Issue
Block a user