From b18a5984442163a5fca33b88af5684251437d7b5 Mon Sep 17 00:00:00 2001 From: wm4 Date: Tue, 17 May 2016 10:53:14 +0200 Subject: [PATCH] ta: remove old and redundant macro --- player/external_files.c | 2 +- ta/ta_talloc.h | 2 -- 2 files changed, 1 insertion(+), 3 deletions(-) diff --git a/player/external_files.c b/player/external_files.c index dfd1ca6802..eb7345ac84 100644 --- a/player/external_files.c +++ b/player/external_files.c @@ -176,7 +176,7 @@ static void append_dir_subtitles(struct mpv_global *global, prio += prio; char *subpath = mp_path_join_bstr(*slist, path, dename); if (mp_path_exists(subpath)) { - MP_GROW_ARRAY(*slist, *nsub); + MP_TARRAY_GROW(NULL, *slist, *nsub); struct subfn *sub = *slist + (*nsub)++; // annoying and redundant diff --git a/ta/ta_talloc.h b/ta/ta_talloc.h index 7194b86601..ce0ddaa4c9 100644 --- a/ta/ta_talloc.h +++ b/ta/ta_talloc.h @@ -92,8 +92,6 @@ char *ta_talloc_asprintf_append_buffer(char *s, const char *fmt, ...) TA_PRF(2, MP_RESIZE_ARRAY(ctx, p, ta_calc_prealloc_elems(nextidx_)); \ } while (0) -#define MP_GROW_ARRAY(p, nextidx) MP_TARRAY_GROW(NULL, p, nextidx) - #define MP_TARRAY_APPEND(ctx, p, idxvar, ...) \ do { \ MP_TARRAY_GROW(ctx, p, idxvar); \