From 6265c774ac8893c38ef462a057fd0e111604bf37 Mon Sep 17 00:00:00 2001 From: Pieter de Bie Date: Sun, 13 Sep 2009 03:51:36 +0200 Subject: [PATCH] CommitView: Remove cruft --- PBGitCommitController.h | 3 --- PBGitIndexController.h | 4 ---- PBGitIndexController.m | 9 --------- PBWebChangesController.h | 1 - PBWebChangesController.m | 8 -------- 5 files changed, 25 deletions(-) diff --git a/PBGitCommitController.h b/PBGitCommitController.h index 78ce4700a..135e5818f 100644 --- a/PBGitCommitController.h +++ b/PBGitCommitController.h @@ -25,9 +25,6 @@ NSString *status; BOOL busy; - - NSDictionary *amendEnvironment; - } @property(copy) NSString *status; diff --git a/PBGitIndexController.h b/PBGitIndexController.h index 7b718ac98..49454cc45 100644 --- a/PBGitIndexController.h +++ b/PBGitIndexController.h @@ -23,10 +23,6 @@ IBOutlet NSTableView *stagedTable; } -@property (assign) int contextSize; - -- (NSString *) contextParameter; - - (IBAction) rowClicked:(NSCell *) sender; - (IBAction) tableClicked:(NSTableView *)tableView; diff --git a/PBGitIndexController.m b/PBGitIndexController.m index 148c8e109..1637fc551 100644 --- a/PBGitIndexController.m +++ b/PBGitIndexController.m @@ -20,12 +20,8 @@ - (void)resumeTrackingIndex; @implementation PBGitIndexController -@synthesize contextSize; - - (void)awakeFromNib { - contextSize = 3; - [unstagedTable setDoubleAction:@selector(tableClicked:)]; [stagedTable setDoubleAction:@selector(tableClicked:)]; @@ -315,11 +311,6 @@ - (BOOL)tableView:(NSTableView *)aTableView return YES; } -- (NSString *) contextParameter -{ - return [[NSString alloc] initWithFormat:@"-U%i", contextSize]; -} - # pragma mark WebKit Accessibility + (BOOL)isSelectorExcludedFromWebScript:(SEL)aSelector diff --git a/PBWebChangesController.h b/PBWebChangesController.h index 0b0ec1366..069f6fc9f 100644 --- a/PBWebChangesController.h +++ b/PBWebChangesController.h @@ -27,5 +27,4 @@ - (void) setStateMessage:(NSString *)state; - (void) showMultiple:(NSArray *)files; -- (void) setContextSize:(int)size; @end diff --git a/PBWebChangesController.m b/PBWebChangesController.m index 592e596e2..2aa96e3df 100644 --- a/PBWebChangesController.m +++ b/PBWebChangesController.m @@ -113,12 +113,4 @@ - (void) setStateMessage:(NSString *)state [script callWebScriptMethod:@"setState" withArguments: [NSArray arrayWithObject:state]]; } -- (void) setContextSize:(int)size -{ - if (size == indexController.contextSize) - return; - - indexController.contextSize = size; - [self refresh]; -} @end