Patchwork libobjc: remove deprecated API (patch 9)

login
register
mail settings
Submitter Nicola Pero
Date June 3, 2011, 7:43 p.m.
Message ID <1307130191.149324762@www2.webmail.us>
Download mbox | patch
Permalink /patch/98642/
State New
Headers show

Comments

Nicola Pero - June 3, 2011, 7:43 p.m.
This patch removes more deprecated and obsolete hooks/functions from libobjc.

Committed to trunk.

Thanks

 */
 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);
-

Patch

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