ext2sim.c: remove unused mergeAttr()

If this is ever restored please audit the implementation as it does
not look sound.
This commit is contained in:
Darryl L. Miles 2025-02-24 08:35:12 +00:00 committed by R. Timothy Edwards
parent e7c46102d6
commit 61e4e155ec
1 changed files with 0 additions and 28 deletions

View File

@ -1741,34 +1741,6 @@ Dev *dev;
: NOT_PARALLEL \
)
/*
* ----------------------------------------------------------------------------
*
* mergeAttr --
* Macro to merge two attribute strings
*
* Results:
* The merged strings
*
* Side effects:
* Might allocate and free memory.
*
* ----------------------------------------------------------------------------
*/
#define mergeAttr(a1, a2) { \
if ( a1 == NULL ) a1 = a2 ; \
else { \
char *t; \
int l1 = strlen(a1); \
int l2 = strlen(a2); \
t = (char *) mallocMagic((unsigned) (l1+l2)+1); \
t = (char *) strcat(a1,a2); \
freeMagic(a1); \
a1 = t ; \
} \
}
/*
* ----------------------------------------------------------------------------
*