MCPcopy Create free account
hub / github.com/PCGEx/PCGExtendedToolkit / Dedupe

Method Dedupe

Source/PCGExtendedToolkit/Private/Graph/PCGExChain.cpp:305–319  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

303 }
304
305 void FNodeChainBuilder::Dedupe()
306 {
307 TSet<uint64> UniqueHashSet;
308 UniqueHashSet.Reserve(Chains.Num());
309
310 for (int i = 0; i < Chains.Num(); i++)
311 {
312 const TSharedPtr<FNodeChain>& Chain = Chains[i];
313
314 bool bAlreadySet = false;
315 UniqueHashSet.Add(Chain->UniqueHash, &bAlreadySet);
316
317 if (bAlreadySet) { Chains[i] = nullptr; }
318 }
319 }
320}

Callers

nothing calls this directly

Calls 3

NumMethod · 0.80
ReserveMethod · 0.45
AddMethod · 0.45

Tested by

no test coverage detected