MCPcopy Create free account
hub / github.com/OpenArkStudio/ARK / EraseNode

Method EraseNode

src/base/AFStringPod.hpp:523–546  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

521 }
522
523 void EraseNode(size_t bucket, node_t* p)
524 {
525 assert(bucket < mnSize);
526 assert(p != nullptr);
527
528 node_t* node = mpBuckets[bucket];
529
530 if (node == p)
531 {
532 mpBuckets[bucket] = p->next;
533 return;
534 }
535
536 while (node)
537 {
538 if (node->next == p)
539 {
540 node->next = p->next;
541 return;
542 }
543
544 node = node->next;
545 }
546 }
547
548 node_t* FindNode(const TYPE* name) const
549 {

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected