Remove bad check for nil argument

git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/base/branches/stable@25630 72102866-910b-0410-8b05-ffd578937521
This commit is contained in:
Richard Frith-MacDonald 2007-11-29 09:00:13 +00:00
parent 16fd4c120b
commit 2ba619f038
2 changed files with 5 additions and 5 deletions

View file

@ -558,11 +558,6 @@ static id ValueForKey(NSObject *self, const char *key, unsigned size)
char key[size+1];
GSOnceMLog(@"This method is deprecated, use -setValue:forKey:");
if (anObject == nil)
{
[NSException raise: NSInvalidArgumentException
format: @"Attempt to set nil value for key '%@'", aKey];
}
[aKey getCString: key
maxLength: size+1
encoding: NSUTF8StringEncoding];