mirror of
https://github.com/kennethreitz-archive/gitx.git
synced 2026-06-05 23:40:18 +00:00
Remove finalizers with only observer unregistering code since GC guide says they are stored as __weak refs anyway.
This commit is contained in:
@@ -149,11 +149,11 @@ contextMenuItemsForElement:(NSDictionary *)element
|
||||
return [historyController valueForKeyPath:[@"repository.config." stringByAppendingString:config]];
|
||||
}
|
||||
|
||||
- (void) finalize
|
||||
{
|
||||
[historyController removeObserver:self forKeyPath:@"webCommit"];
|
||||
[super finalize];
|
||||
}
|
||||
// - (void) finalize
|
||||
// {
|
||||
// [historyController removeObserver:self forKeyPath:@"webCommit"];
|
||||
// [super finalize];
|
||||
// }
|
||||
|
||||
- (void) preferencesChanged
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user