| 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) |
nothing calls this directly
no outgoing calls
no test coverage detected