mirror of https://github.com/mpv-player/mpv
ta: remove old and redundant macro
This commit is contained in:
parent
a2d58d9986
commit
b18a598444
|
@ -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
|
||||
|
|
|
@ -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); \
|
||||
|
|
Loading…
Reference in New Issue