diff options
author | nicola <nicola@138bc75d-0d04-0410-961f-82ee72b054a4> | 2010-12-14 23:36:36 +0000 |
---|---|---|
committer | nicola <nicola@138bc75d-0d04-0410-961f-82ee72b054a4> | 2010-12-14 23:36:36 +0000 |
commit | b78e40748288e821b8112dcf6aa333d83e28ee2c (patch) | |
tree | 51cf821b43e4c3619d5c7f664fc6aeb9b0caff64 /libobjc/Object.m | |
parent | 9fe897efae2cbd7ce5ed2028f22c151cb43e40b0 (diff) | |
download | gcc-b78e40748288e821b8112dcf6aa333d83e28ee2c.tar.gz |
2010-12-14 Nicola Pero <nicola.pero@meta-innovation.com>
* objc/Object.h: Moved all the methods, with the exception of
-class and -isEqual:, into ...
* objc/deprecated/Object.h: here.
* Object.m: Moved all the methods, with the exception of -class
and -isEqual: into the 'Deprecated' category.
git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@167825 138bc75d-0d04-0410-961f-82ee72b054a4
Diffstat (limited to 'libobjc/Object.m')
-rw-r--r-- | libobjc/Object.m | 33 |
1 files changed, 16 insertions, 17 deletions
diff --git a/libobjc/Object.m b/libobjc/Object.m index 441c471b2a1..0b7c49fdab2 100644 --- a/libobjc/Object.m +++ b/libobjc/Object.m @@ -31,6 +31,22 @@ see the files COPYING3 and COPYING.RUNTIME respectively. If not, see @implementation Object +- (Class)class +{ + return object_get_class (self); +} + +- (BOOL)isEqual: (id)anObject +{ + return self == anObject; +} + +@end + +/* The following methods were deprecated in GCC 4.6.0 and will be + removed in the next GCC release. */ +@implementation Object (Deprecated) + + initialize { return self; @@ -76,11 +92,6 @@ see the files COPYING3 and COPYING.RUNTIME respectively. If not, see return [self copy]; } -- (Class)class -{ - return object_get_class(self); -} - - (Class)superClass { return object_get_super_class(self); @@ -106,11 +117,6 @@ see the files COPYING3 and COPYING.RUNTIME respectively. If not, see return (size_t)self; } -- (BOOL)isEqual:anObject -{ - return self==anObject; -} - - (int)compare:(id)anotherObject; { if ([self isEqual:anotherObject]) @@ -344,13 +350,6 @@ see the files COPYING3 and COPYING.RUNTIME respectively. If not, see class_set_version(self, aVersion); return self; } -@end - -/* The following methods were deprecated in GCC 4.6.0 and will be - removed in the next GCC release. -*/ - -@implementation Object (Deprecated) + (int)streamVersion: (TypedStream*)aStream { |