mirror of
https://github.com/gnustep/libs-base.git
synced 2025-06-02 01:21:08 +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
|
@ -1,3 +1,8 @@
|
|||
2007-11-29 Richard Frith-Macdonald <rfm@gnu.org>
|
||||
|
||||
* Source/NSKeyValueCoding.m: Remove erroneous check for nil argument
|
||||
in obsolete method ([takeValue:forKey:]).
|
||||
|
||||
2007-10-30 Adam Fedor <fedor@gnu.org>
|
||||
|
||||
* Version 1.14.1
|
||||
|
|
|
@ -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