MCPcopy Create free account
hub / github.com/Tencent/UnLua / Clear

Method Clear

Plugins/UnLua/Source/UnLua/Private/Registries/DelegateRegistry.cpp:264–279  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

262 }
263
264 void FDelegateRegistry::Clear(void* Delegate)
265 {
266 const auto Info = Delegates.Find(Delegate);
267 if (!Info)
268 return;
269
270 for (const auto& Handler : Info->Handlers)
271 {
272 if (!Handler.IsValid())
273 continue;
274 if (Info->Owner.IsValid())
275 Handler->RemoveFrom(Info->MulticastProperty, Delegate);
276 }
277
278 Info->Handlers.Empty();
279 }
280
281#pragma endregion
282

Callers

nothing calls this directly

Calls 4

RemoveFromMethod · 0.80
FindMethod · 0.45
IsValidMethod · 0.45
EmptyMethod · 0.45

Tested by

no test coverage detected