This is the mail archive of the gcc-patches@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

libobjc: remove deprecated API (patch 9)


This patch removes more deprecated and obsolete hooks/functions from libobjc.

Committed to trunk.

Thanks

Index: Makefile.in
===================================================================
--- Makefile.in (revision 174616)
+++ Makefile.in (working copy)
@@ -132,7 +132,6 @@ OBJC_DEPRECATED_H = \
   Protocol.h \
   objc_get_uninstalled_dtable.h \
   objc_msg_sendv.h \
-  objc_object_alloc.h \
   struct_objc_category.h \
   struct_objc_class.h \
   struct_objc_ivar.h \
Index: libobjc.def
===================================================================
--- libobjc.def (revision 174615)
+++ libobjc.def (working copy)
@@ -48,9 +48,6 @@ objc_thread_remove
 __objc_class_name_Object
 __objc_class_name_Protocol
 __objc_class_name_NXConstantString
-__objc_object_alloc
-__objc_object_copy
-__objc_object_dispose
 class_create_instance
 object_copy
 object_dispose
Index: objects.c
===================================================================
--- objects.c   (revision 174593)
+++ objects.c   (working copy)
@@ -123,8 +123,3 @@ object_setClass (id object, Class class_)
     }
 }
 
-/* Hook functions for memory allocation and disposal.  Deprecated and
-   currently unused.  */
-id (*_objc_object_alloc) (Class)   = 0;
-id (*_objc_object_dispose) (id)    = 0;
-id (*_objc_object_copy) (id)       = 0;
Index: ChangeLog
===================================================================
--- ChangeLog   (revision 174616)
+++ ChangeLog   (working copy)
@@ -1,5 +1,15 @@
 2011-06-03  Nicola Pero  <nicola.pero@meta-innovation.com>
 
+       * Makefile.in (OBJC_DEPRECATED_H): Removed objc_object_alloc.h.
+       * objc/deprecated/objc_object_alloc.h: Removed.
+       * objc/objc-api.h: Do not include deprecated/objc_object_alloc.h.
+       * objects.c (_objc_object_alloc, _objc_object_dispose,
+       _objc_object_copy): Removed.
+       * libobjc.def (__objc_object_alloc, __objc_object_copy,
+       __objc_object_dispose): Removed.
+       
+2011-06-03  Nicola Pero  <nicola.pero@meta-innovation.com>
+
        * Makefile.in (OBJC_DEPRECATED_H): Removed METHOD_NULL.h.
        * objc/objc-api.h: Do not include deprecated/METHOD_NULL.h.
        * objc/deprecated/METHOD_NULL.h: Removed.
Index: objc/deprecated/objc_object_alloc.h
===================================================================
--- objc/deprecated/objc_object_alloc.h (revision 174593)
+++ objc/deprecated/objc_object_alloc.h (working copy)
@@ -1,8 +0,0 @@
-/* These functions are deprecated and currently ignored.  */
-/*
-** Hook functions for allocating, copying and disposing of instances
-*/
-objc_EXPORT id (*_objc_object_alloc)(Class _class);Index: objc/objc-api.h
===================================================================
--- objc/objc-api.h     (revision 174616)
+++ objc/objc-api.h     (working copy)
@@ -191,8 +191,6 @@ objc_EXPORT Class (*_objc_lookup_class)(const char
 */
 objc_EXPORT void (*_objc_load_callback)(Class _class, Category* category);
 
-#include "deprecated/objc_object_alloc.h"
-
 /*
   Standard functions for memory allocation and disposal.  Users should
   use these functions in their ObjC programs so that they work so that

-objc_EXPORT id (*_objc_object_copy)(id object);
-objc_EXPORT id (*_objc_object_dispose)(id object);
-



Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]