From 28f2d7454d5ea997dec691376ebcdf4c4e0454b4 Mon Sep 17 00:00:00 2001 From: wm4 Date: Sun, 12 Apr 2020 12:24:19 +0200 Subject: ta: minor simplification for talloc_steal Since commit f6615f00eeb0, it can't fail anymore. --- ta/ta_utils.c | 8 -------- 1 file changed, 8 deletions(-) (limited to 'ta/ta_utils.c') diff --git a/ta/ta_utils.c b/ta/ta_utils.c index 8d729a9028..62469686db 100644 --- a/ta/ta_utils.c +++ b/ta/ta_utils.c @@ -53,8 +53,6 @@ void *ta_new_context(void *ta_parent) /* Set parent of ptr to ta_parent, return the ptr. * Note that ta_parent==NULL will simply unset the current parent of ptr. - * If the operation fails (on OOM), return NULL. (That's pretty bad behavior, - * but the only way to signal failure.) */ void *ta_steal_(void *ta_parent, void *ptr) { @@ -288,12 +286,6 @@ char *ta_oom_s(char *s) return s; } -void *ta_xsteal_(void *ta_parent, void *ptr) -{ - ta_set_parent(ptr, ta_parent); - return ptr; -} - void *ta_xmemdup(void *ta_parent, void *ptr, size_t size) { void *new = ta_memdup(ta_parent, ptr, size); -- cgit v1.2.3