MCPcopy Create free account
hub / github.com/adriancable/eternal / ShrinkToFit

Method ShrinkToFit

doom/src/tarray.h:320–338  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

318 }
319 }
320 void ShrinkToFit ()
321 {
322 if (Most > Count)
323 {
324 Most = Count;
325 if (Most == 0)
326 {
327 if (Array != NULL)
328 {
329 M_Free (Array);
330 Array = NULL;
331 }
332 }
333 else
334 {
335 DoResize ();
336 }
337 }
338 }
339 // Grow Array to be large enough to hold amount more entries without
340 // further growing.
341 void Grow (unsigned int amount)

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected