From 0ec036bfd8b82339ea65278302a3b771648d7aff Mon Sep 17 00:00:00 2001 From: wm4 Date: Sun, 23 Feb 2020 19:48:25 +0100 Subject: ta: remove two pointless wrappers --- ta/ta.h | 4 ---- ta/ta_talloc.h | 2 +- 2 files changed, 1 insertion(+), 5 deletions(-) (limited to 'ta') diff --git a/ta/ta.h b/ta/ta.h index 340394db0f..cc98cb7c5e 100644 --- a/ta/ta.h +++ b/ta/ta.h @@ -125,10 +125,6 @@ bool ta_vasprintf_append_buffer(char **str, const char *fmt, va_list ap) TA_PRF( #define ta_xnew_array_ptrtype(...) ta_oom_g(ta_new_array_ptrtype(__VA_ARGS__)) #define ta_xdup(...) ta_oom_g(ta_dup(__VA_ARGS__)) -// Cannot fail anymore. -#define ta_xset_destructor(...) ta_set_destructor(__VA_ARGS__) -#define ta_xset_parent(...) ta_set_parent(__VA_ARGS__) - #define ta_xsteal(ta_parent, ptr) (TA_TYPEOF(ptr))ta_xsteal_(ta_parent, ptr) #define ta_xrealloc(ta_parent, ptr, type, count) \ (type *)ta_xrealloc_size(ta_parent, ptr, ta_calc_array_size(sizeof(type), count)) diff --git a/ta/ta_talloc.h b/ta/ta_talloc.h index f2413c0112..982ef41ebd 100644 --- a/ta/ta_talloc.h +++ b/ta/ta_talloc.h @@ -37,7 +37,7 @@ #define talloc_steal ta_xsteal #define talloc_realloc_size ta_xrealloc_size #define talloc_new ta_xnew_context -#define talloc_set_destructor ta_xset_destructor +#define talloc_set_destructor ta_set_destructor #define talloc_enable_leak_report ta_enable_leak_report #define talloc_size ta_xalloc_size #define talloc_zero_size ta_xzalloc_size -- cgit v1.2.3