From: Matthew Fernandez Date: Sat, 9 Jul 2022 16:57:22 +0000 (-0700) Subject: ast: remove now unused 'oldof' X-Git-Tag: 5.0.1~42^2 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=fd6d04a22a53f09dc3895bd0ce335f44a5d54031;p=graphviz ast: remove now unused 'oldof' --- diff --git a/lib/ast/ast.h b/lib/ast/ast.h index 27783c540..f04d194d8 100644 --- a/lib/ast/ast.h +++ b/lib/ast/ast.h @@ -52,7 +52,6 @@ extern "C" { #define elementsof(x) (sizeof(x)/sizeof(x[0])) #define newof(p,t,n,x) ((p)?(t*)realloc((char*)(p),sizeof(t)*(n)+(x)):(t*)calloc(1,sizeof(t)*(n)+(x))) -#define oldof(p,t,n,x) ((p)?(t*)realloc((char*)(p),sizeof(t)*(n)+(x)):(t*)malloc(sizeof(t)*(n)+(x))) #define streq(a,b) (!strcmp(a,b)) #define strneq(a,b,n) (!strncmp(a,b,n)) #define memzero(b,n) memset(b,0,n)