| 346 | } |
| 347 | |
| 348 | static void FootpathNeighbourListRemove(FootpathNeighbourList* neighbourList, size_t index) |
| 349 | { |
| 350 | Guard::ArgumentInRange<size_t>(index, 0, neighbourList->count - 1); |
| 351 | int32_t itemsRemaining = static_cast<int32_t>(neighbourList->count - index) - 1; |
| 352 | if (itemsRemaining > 0) |
| 353 | { |
| 354 | memmove(&neighbourList->items[index], &neighbourList->items[index + 1], sizeof(FootpathNeighbour) * itemsRemaining); |
| 355 | } |
| 356 | neighbourList->count--; |
| 357 | } |
| 358 | |
| 359 | static void FoopathNeighbourListSort(FootpathNeighbourList* neighbourList) |
| 360 | { |
no outgoing calls
no test coverage detected