Remove ComponentDeleted C# event (#4317)

No one's used it for 12 years probably no reason to obs first.
This commit is contained in:
metalgearsloth
2023-08-26 07:24:33 +10:00
committed by GitHub
parent 98c1397b3a
commit fc3116fca5
2 changed files with 0 additions and 11 deletions

View File

@@ -55,9 +55,6 @@ namespace Robust.Shared.GameObjects
/// <inheritdoc />
public event Action<RemovedComponentEventArgs>? ComponentRemoved;
/// <inheritdoc />
public event Action<DeletedComponentEventArgs>? ComponentDeleted;
public void InitializeComponents()
{
if (Initialized)
@@ -606,8 +603,6 @@ namespace Robust.Shared.GameObjects
// TODO if terminating the entity, maybe defer this?
// _entCompIndex.Remove(uid) gets called later on anyways.
_entCompIndex.Remove(entityUid, component);
ComponentDeleted?.Invoke(new DeletedComponentEventArgs(new ComponentEventArgs(component, entityUid), terminating));
}
/// <inheritdoc />

View File

@@ -18,12 +18,6 @@ namespace Robust.Shared.GameObjects
/// </summary>
event Action<RemovedComponentEventArgs>? ComponentRemoved;
/// <summary>
/// A component was deleted. This is usually deferred until some time after it was removed.
/// Usually you will want to subscribe to <see cref="ComponentRemoved"/>.
/// </summary>
event Action<DeletedComponentEventArgs>? ComponentDeleted;
/// <summary>
/// Calls Initialize() on all registered components of the entity.
/// </summary>