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

Method Unbind

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

Source from the content-addressed store, hash-verified

167 }
168
169 void FDelegateRegistry::Unbind(void* Delegate)
170 {
171 const auto Info = Delegates.Find(Delegate);
172 if (!Info)
173 return;
174
175 for (const auto& Handler : Info->Handlers)
176 {
177 if (!Handler.IsValid())
178 continue;
179 if (!Info->Owner.IsStale())
180 ((FScriptDelegate*)Delegate)->Unbind();
181 }
182 Info->Handlers.Empty();
183 }
184
185 void FDelegateRegistry::Execute(const ULuaDelegateHandler* Handler, void* Params)
186 {

Callers

nothing calls this directly

Calls 3

FindMethod · 0.45
IsValidMethod · 0.45
EmptyMethod · 0.45

Tested by

no test coverage detected