| 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 |
nothing calls this directly
no test coverage detected