diff options
author | wm4 <wm4@nowhere> | 2020-04-12 12:24:19 +0200 |
---|---|---|
committer | wm4 <wm4@nowhere> | 2020-04-13 15:56:27 +0200 |
commit | 28f2d7454d5ea997dec691376ebcdf4c4e0454b4 (patch) | |
tree | 7c5304c2b10774293da35ae684423a18f0318dd9 /ta/ta_utils.c | |
parent | 55f16bad7659b363fbea23a2c7f622e98fa35d4a (diff) | |
download | mpv-28f2d7454d5ea997dec691376ebcdf4c4e0454b4.tar.bz2 mpv-28f2d7454d5ea997dec691376ebcdf4c4e0454b4.tar.xz |
ta: minor simplification for talloc_steal
Since commit f6615f00eeb0, it can't fail anymore.
Diffstat (limited to 'ta/ta_utils.c')
-rw-r--r-- | ta/ta_utils.c | 8 |
1 files changed, 0 insertions, 8 deletions
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); |