summaryrefslogtreecommitdiff
path: root/libobjc/Object.m
diff options
context:
space:
mode:
authornicola <nicola@138bc75d-0d04-0410-961f-82ee72b054a4>2010-12-14 23:36:36 +0000
committernicola <nicola@138bc75d-0d04-0410-961f-82ee72b054a4>2010-12-14 23:36:36 +0000
commitb78e40748288e821b8112dcf6aa333d83e28ee2c (patch)
tree51cf821b43e4c3619d5c7f664fc6aeb9b0caff64 /libobjc/Object.m
parent9fe897efae2cbd7ce5ed2028f22c151cb43e40b0 (diff)
downloadgcc-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.m33
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
{