talloc: remove ABI compat functions
authorStefan Metzmacher <metze@samba.org>
Thu, 20 Aug 2009 11:36:33 +0000 (13:36 +0200)
committerStefan Metzmacher <metze@samba.org>
Fri, 21 Aug 2009 07:58:22 +0000 (09:58 +0200)
metze

lib/talloc/talloc.c
lib/talloc/talloc.h

index 50dae3b947059490154f1b2e7d027f3165a8c052..b5dcfca74cdb32230710a18f0984222e6c79fef7 100644 (file)
@@ -1921,31 +1921,3 @@ int talloc_is_parent(const void *context, const void *ptr)
        }
        return 0;
 }
-
-
-
-
-/* ABI compat functions (do NOT append anything beyond thess functions,
- * keep them as the last ones in the file) */
-
-static const char *talloc_ABI_compat_location = "Called from compatibility function";
-
-/* ABI compat function (don't use) */
-void *_talloc_reference(const void *context, const void *ptr) {
-       return _talloc_reference_loc(context, ptr, talloc_ABI_compat_location);
-}
-
-/* ABI compat function (don't use) */
-void *_talloc_steal(const void *new_ctx, const void *ptr)
-{
-       return _talloc_steal_internal(new_ctx, ptr);
-}
-
-#undef talloc_free
-int talloc_free(void *ptr);
-int talloc_free(void *ptr)
-{
-       return _talloc_free_internal(ptr);
-}
-
-/* DO NOT APPEND ANYTHING BEYOND THIS POINT */
index 234c0b442c8711bcb7194ea004c0e45306adef13..54be1699dc32b58055829ef3e4f25c2d33a12356 100644 (file)
@@ -192,7 +192,4 @@ void talloc_set_abort_fn(void (*abort_fn)(const char *reason));
 void talloc_set_log_fn(void (*log_fn)(const char *message));
 void talloc_set_log_stderr(void);
 
-/* for ABI compatibility, never use in new code */
-void *_talloc_reference(const void *context, const void *ptr);
-void *_talloc_steal(const void *new_ctx, const void *ptr);
 #endif