CommitView: Remove checking if same file is displayed

This causes trouble if a file was partially staged,
or if we switch from the staged changes to the
unstaged changes.

It should be quick enough not to matter anyway, so
let's simplify things and remove the check.
This commit is contained in:
Pieter de Bie
2008-10-09 21:34:06 +02:00
parent fe38069e39
commit 4f212f04b5
2 changed files with 0 additions and 8 deletions
-2
View File
@@ -15,8 +15,6 @@
IBOutlet NSArrayController *unstagedFilesController;
IBOutlet NSArrayController *cachedFilesController;
IBOutlet PBGitCommitController *controller;
id previousFile;
}
- (void) showDiff:(PBChangedFile *)file cached:(BOOL)cached;
-6
View File
@@ -58,12 +58,6 @@ static PBChangedFile *lastFileSelected = nil;
return;
}
// Don't reload if we already display this file
if (previousFile == file)
return;
previousFile = file;
id script = [view windowScriptObject];
NSLog(@"Showing diff..");
[script callWebScriptMethod:@"showFileChanges" withArguments:[NSArray arrayWithObjects:file, [NSNumber numberWithBool:cached], nil]];