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:
parent
e7c46102d6
commit
61e4e155ec
|
|
@ -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 ; \
|
||||
} \
|
||||
}
|
||||
|
||||
|
||||
/*
|
||||
* ----------------------------------------------------------------------------
|
||||
*
|
||||
|
|
|
|||
Loading…
Reference in New Issue