Remove shrink_to_fit which is useless as reserve performs its role now too.
This commit is contained in:
1 parent
a1dec4dfe9
commit
418d868b1d
3 files changed
+2
-11
No files matched your search
@@ -474,15 +474,6 @@
|
||||
) /* IF INIT_MOVE method */ \
|
||||
} \
|
||||
\
|
||||
static inline void \
|
||||
M_C3(array_, name, _shrink_to_fit)(M_C3(array_, name,_t) v) \
|
||||
{ \
|
||||
assert (v != NULL && v->size <= v->alloc); \
|
||||
v->ptr = M_GET_REALLOC oplist (type, v->ptr, v->size); \
|
||||
assert(v->ptr != NULL || v->size == 0); \
|
||||
v->alloc = v->size; \
|
||||
} \
|
||||
\
|
||||
static inline type * \
|
||||
M_C3(array_, name, _get)(M_C3(array_, name,_t) v, size_t i) \
|
||||
{ \
|
||||
|
||||
Reference in new issue
Block a user