mirror of
https://github.com/gnustep/libs-base.git
synced 2025-05-31 16:50:58 +00:00
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:
parent
16fd4c120b
commit
2ba619f038
2 changed files with 5 additions and 5 deletions
|
@ -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];
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue