container
container copied to clipboard
Remove 'RemoveValue' from 'LifetimeManager
Description
The method is redundant and is never being used in Unity code.
#region LifetimeManager Members
/// <summary>
/// Retrieves a value from the backing store associated with this Lifetime policy.
/// </summary>
/// <param name="container">The container this lifetime is associated with</param>
/// <returns>the object desired, or null if no such object is currently stored.</returns>
public virtual object GetValue(ILifetimeContainer container = null) => NoValue;
/// <summary>
/// Stores the given value into backing store for retrieval later.
/// </summary>
/// <param name="newValue">The object being stored.</param>
/// <param name="container">The container this lifetime is associated with</param>
public virtual void SetValue(object newValue, ILifetimeContainer container = null) { }
/// <summary>
/// Remove the given object from backing store.
/// </summary>
/// <param name="container">The container this lifetime belongs to</param>
public virtual void RemoveValue(ILifetimeContainer container = null) { }
#endregion
The container does not remove values from existing lifetime managers so the code is never executed.
Solution
This method should be removed from implementation in next major release.
Impact
Limited