From 5760edeeb6b6d5a8aaebae2422ba3e7c3df700cc Mon Sep 17 00:00:00 2001 From: Stefan Metzmacher Date: Thu, 20 Aug 2009 13:36:33 +0200 Subject: talloc: remove ABI compat functions metze --- lib/talloc/talloc.c | 28 ---------------------------- lib/talloc/talloc.h | 3 --- 2 files changed, 31 deletions(-) (limited to 'lib/talloc') diff --git a/lib/talloc/talloc.c b/lib/talloc/talloc.c index 50dae3b947..b5dcfca74c 100644 --- a/lib/talloc/talloc.c +++ b/lib/talloc/talloc.c @@ -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 */ diff --git a/lib/talloc/talloc.h b/lib/talloc/talloc.h index 234c0b442c..54be1699dc 100644 --- a/lib/talloc/talloc.h +++ b/lib/talloc/talloc.h @@ -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 -- cgit