Skip to content

Commit

Permalink
Remove unused macros
Browse files Browse the repository at this point in the history
Fixes GH#1056
  • Loading branch information
michal-josef-spacek committed Dec 7, 2024
1 parent b8fd725 commit e2f4f73
Showing 1 changed file with 0 additions and 29 deletions.
29 changes: 0 additions & 29 deletions src/dec_macros.h
Original file line number Diff line number Diff line change
Expand Up @@ -1160,22 +1160,6 @@
dxf) \
} \
}
#define SUB_FIELD_VECTOR_N(o, nam, type, csize, dxf) \
if (csize > 0) \
{ \
SUB_VECTOR_CHKCOUNT (o, nam, type, csize, dat) \
_obj->o.nam \
= (BITCODE_##type *)calloc (csize, sizeof (BITCODE_##type)); \
if (!_obj->o.nam) \
return DWG_ERR_OUTOFMEM; \
for (vcount = 0; vcount < (BITCODE_BL)csize; vcount++) \
{ \
_obj->o.nam[vcount] = bit_read_##type (dat); \
LOG_TRACE (#nam "[%ld]: " FORMAT_##type " [" #type " %d]", \
(long)vcount, _obj->o.nam[vcount], dxf) \
LOG_POS \
} \
}
#define SUB_FIELD_VECTOR(o, name, type, sizefield, dxf) \
if (_obj->o.sizefield > 0) \
{ \
Expand Down Expand Up @@ -1215,19 +1199,6 @@
LOG_TRACE ("} [*" #type "]") \
LOG_POS \
}
// inlined, with const size and without malloc
#define SUB_FIELD_VECTOR_INL(o, nam, type, csize, dxf) \
if (csize > 0) \
{ \
_VECTOR_CHKCOUNT_STATIC (nam, csize, TYPE_MAXELEMSIZE (type), dat) \
for (vcount = 0; vcount < (BITCODE_BL)csize; vcount++) \
{ \
_obj->o.nam[vcount] = bit_read_##type (dat); \
LOG_TRACE (#nam "[%ld]: " FORMAT_##type " [" #type " %d]", \
(long)vcount, _obj->o.nam[vcount], dxf) \
LOG_POS \
} \
}
#define FIELD_VECTOR_T(name, type, size, dxf) \
if (_obj->size > 0) \
{ \
Expand Down

0 comments on commit e2f4f73

Please sign in to comment.