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

Method Remove

src/base/AFStringPod.hpp:350–377  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

348 }
349
350 bool Remove(const TYPE* name)
351 {
352 assert(name != nullptr);
353
354 if (mnSize == 0)
355 {
356 return false;
357 }
358
359 size_t hash = TRAITS::Hash(name);
360 size_t bucket = GetBucket(hash);
361 node_t* p = mpBuckets[bucket];
362
363 while (p)
364 {
365 if ((p->hash == hash) && TRAITS::Equal(p->name, name))
366 {
367 EraseNode(bucket, p);
368 DeleteNode(p);
369 --mnCount;
370 return true;
371 }
372
373 p = p->next;
374 }
375
376 return false;
377 }
378
379 bool RemoveData(const TYPE* name, const DATA& data)
380 {

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected