Permalink
Browse files

Over unobserving is ok!

  • Loading branch information...
1 parent 4bd02c0 commit 135bb984e4df9a5a1a1ed118acf45bd0ebcb8398 @schwa committed Jan 26, 2012
Showing with 0 additions and 3 deletions.
  1. +0 −3 NSObject_KVOBlock.m
View
@@ -114,12 +114,9 @@ - (void)removeKVOBlockForToken:(id)inToken
if (theHelper == NULL)
{
- NSLog(@"KVOBlock never registered?");
return;
}
- NSAssert(theHelper != NULL, @"KVOBlock never registered");
-
void *theContext = (__bridge void *)[theHelper canonicalKeyForKey:inToken];
NSString *theKeyPath = [theHelper keypathForKey:inToken];
[self removeObserver:theHelper forKeyPath:theKeyPath context:theContext];

0 comments on commit 135bb98

Please sign in to comment.