summaryrefslogtreecommitdiffstats
path: root/src/kim
diff options
context:
space:
mode:
authorAlexandra Ellwood <lxs@mit.edu>2008-10-29 21:07:40 +0000
committerAlexandra Ellwood <lxs@mit.edu>2008-10-29 21:07:40 +0000
commit32f33ef59775ac4510a3fdd6103c1381466a8080 (patch)
tree6a78f02f4ed9e3de260486ea1bd462626456f4c1 /src/kim
parent3cbfb6c05fb4778531271444858a605ed12ac6e2 (diff)
downloadkrb5-32f33ef59775ac4510a3fdd6103c1381466a8080.tar.gz
krb5-32f33ef59775ac4510a3fdd6103c1381466a8080.tar.xz
krb5-32f33ef59775ac4510a3fdd6103c1381466a8080.zip
Removed unnecessary code that was resetting options whenever the
array changes in the background. The problem is that any external change to the ticket list will cause this to happen, even when the options dialog is open. Also removed unused function resetOptions. ticket: 6224 git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@20938 dc483132-0cff-0310-8789-dd5450dbe970
Diffstat (limited to 'src/kim')
-rw-r--r--src/kim/agent/mac/SelectIdentityController.h1
-rw-r--r--src/kim/agent/mac/SelectIdentityController.m17
2 files changed, 0 insertions, 18 deletions
diff --git a/src/kim/agent/mac/SelectIdentityController.h b/src/kim/agent/mac/SelectIdentityController.h
index 1a95ca9946..4d744ba08e 100644
--- a/src/kim/agent/mac/SelectIdentityController.h
+++ b/src/kim/agent/mac/SelectIdentityController.h
@@ -77,7 +77,6 @@
- (IBAction) removeFromFavorites: (id) sender;
- (IBAction) editOptions: (id) sender;
-- (IBAction) resetOptions: (id) sender;
- (IBAction) cancelOptions: (id) sender;
- (IBAction) doneOptions: (id) sender;
diff --git a/src/kim/agent/mac/SelectIdentityController.m b/src/kim/agent/mac/SelectIdentityController.m
index 4bc760d9d8..9f9addaf37 100644
--- a/src/kim/agent/mac/SelectIdentityController.m
+++ b/src/kim/agent/mac/SelectIdentityController.m
@@ -41,7 +41,6 @@
- (void) dealloc
{
- [identityArrayController removeObserver:self forKeyPath:@"selectedObjects"];
[identityOptionsController removeObserver:self forKeyPath:uses_default_options_keypath];
[refreshTimer release];
[identities release];
@@ -87,10 +86,6 @@
forKeyPath:identity_string_keypath
options:NSKeyValueObservingOptionNew
context:NULL];
- [identityArrayController addObserver:self
- forKeyPath:@"selectedObjects"
- options:NSKeyValueObservingOptionNew
- context:NULL];
}
- (void) observeValueForKeyPath:(NSString *) keyPath ofObject: (id) object change: (NSDictionary *) change context:(void *) context
@@ -100,10 +95,6 @@
[identityOptionsController setValue:[NSNumber numberWithBool:enabled]
forKeyPath:@"content.canClickOK"];
}
- // clear options on selection change
- else if (object == identityArrayController && [keyPath isEqualToString:@"selectedObjects"]) {
- [identityOptionsController setContent:nil];
- }
}
// ---------------------------------------------------------------------------
@@ -219,14 +210,6 @@
// ---------------------------------------------------------------------------
-- (IBAction) resetOptions: (id) sender
-{
- Identity *anIdentity = [identityArrayController.selectedObjects lastObject];
- [identityOptionsController setContent:anIdentity.options];
-}
-
-// ---------------------------------------------------------------------------
-
- (IBAction) cancelOptions: (id) sender
{
identityOptionsController.content = nil;