|
16 | 16 | #import "PBNSURLPathUserDefaultsTransfomer.h" |
17 | 17 | #import "PBGitDefaults.h" |
18 | 18 | #import "PBCloneRepositoryPanel.h" |
19 | | -#import "Sparkle/SUUpdater.h" |
20 | 19 |
|
21 | 20 | @implementation ApplicationController |
22 | 21 |
|
@@ -63,9 +62,6 @@ - (void)registerServices |
63 | 62 |
|
64 | 63 | - (void)applicationDidFinishLaunching:(NSNotification*)notification |
65 | 64 | { |
66 | | - [[SUUpdater sharedUpdater] setSendsSystemProfile:YES]; |
67 | | - [[SUUpdater sharedUpdater] setDelegate:self]; |
68 | | - |
69 | 65 | // Make sure Git's SSH password requests get forwarded to our little UI tool: |
70 | 66 | setenv( "SSH_ASKPASS", [[[NSBundle mainBundle] pathForResource: @"gitx_askpasswd" ofType: @""] UTF8String], 1 ); |
71 | 67 | setenv( "DISPLAY", "localhost:0", 1 ); |
@@ -367,31 +363,6 @@ - (void) dealloc { |
367 | 363 | [super dealloc]; |
368 | 364 | } |
369 | 365 |
|
370 | | - |
371 | | -#pragma mark Sparkle delegate methods |
372 | | - |
373 | | -- (NSArray *)feedParametersForUpdater:(SUUpdater *)updater sendingSystemProfile:(BOOL)sendingProfile |
374 | | -{ |
375 | | - NSArray *keys = [NSArray arrayWithObjects:@"key", @"displayKey", @"value", @"displayValue", nil]; |
376 | | - NSMutableArray *feedParameters = [NSMutableArray array]; |
377 | | - |
378 | | - // only add parameters if the profile is being sent this time |
379 | | - if (sendingProfile) { |
380 | | - NSString *CFBundleGitVersion = [[[NSBundle mainBundle] infoDictionary] valueForKey:@"CFBundleGitVersion"]; |
381 | | - if (CFBundleGitVersion) |
382 | | - [feedParameters addObject:[NSDictionary dictionaryWithObjects:[NSArray arrayWithObjects:@"CFBundleGitVersion", @"Full Version", CFBundleGitVersion, CFBundleGitVersion, nil] |
383 | | - forKeys:keys]]; |
384 | | - |
385 | | - NSString *gitVersion = [PBGitBinary version]; |
386 | | - if (gitVersion) |
387 | | - [feedParameters addObject:[NSDictionary dictionaryWithObjects:[NSArray arrayWithObjects:@"gitVersion", @"git Version", gitVersion, gitVersion, nil] |
388 | | - forKeys:keys]]; |
389 | | - } |
390 | | - |
391 | | - return feedParameters; |
392 | | -} |
393 | | - |
394 | | - |
395 | 366 | #pragma mark Help menu |
396 | 367 |
|
397 | 368 | - (IBAction)showHelp:(id)sender |
|
0 commit comments