Remove unnecessary finalizers (#14248)
This commit is contained in:
parent
c7bdb24ff3
commit
15e4e8a6af
|
@ -705,14 +705,6 @@ namespace Microsoft.PowerShell.Commands
|
|||
GC.SuppressFinalize(this);
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// Finalizer.
|
||||
/// </summary>
|
||||
~ContentCommandBase()
|
||||
{
|
||||
Dispose(false);
|
||||
}
|
||||
#endregion IDisposable
|
||||
|
||||
}
|
||||
}
|
||||
|
|
|
@ -492,13 +492,5 @@ namespace Microsoft.PowerShell.Commands
|
|||
this.Dispose(true);
|
||||
GC.SuppressFinalize(this);
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// Finalizer.
|
||||
/// </summary>
|
||||
~OutGridViewCommand()
|
||||
{
|
||||
Dispose(false);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
|
@ -63,14 +63,6 @@ namespace Microsoft.PowerShell.Commands
|
|||
private object _commandViewModelObj;
|
||||
#endregion
|
||||
|
||||
/// <summary>
|
||||
/// Finalizes an instance of the ShowCommandCommand class.
|
||||
/// </summary>
|
||||
~ShowCommandCommand()
|
||||
{
|
||||
this.Dispose(false);
|
||||
}
|
||||
|
||||
#region Input Cmdlet Parameter
|
||||
/// <summary>
|
||||
/// Gets or sets the command name.
|
||||
|
|
|
@ -149,14 +149,6 @@ namespace Microsoft.PowerShell.Commands
|
|||
GC.SuppressFinalize(this);
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// Finalizer.
|
||||
/// </summary>
|
||||
~TeeObjectCommand()
|
||||
{
|
||||
Dispose(false);
|
||||
}
|
||||
|
||||
#region private
|
||||
private CommandWrapper _commandWrapper;
|
||||
private bool _alreadyDisposed;
|
||||
|
|
|
@ -957,14 +957,6 @@ namespace System.Management.Automation
|
|||
_disposed = true;
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// Finalizer for class CommandProcessorBase.
|
||||
/// </summary>
|
||||
~CommandProcessorBase()
|
||||
{
|
||||
Dispose(false);
|
||||
}
|
||||
|
||||
#endregion IDispose
|
||||
}
|
||||
}
|
||||
|
|
|
@ -1510,14 +1510,6 @@ namespace System.Management.Automation
|
|||
ForwardEvent?.Invoke(this, e);
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// Destructor for the EventManager class.
|
||||
/// </summary>
|
||||
~PSLocalEventManager()
|
||||
{
|
||||
Dispose(false);
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// Disposes the EventManager class.
|
||||
/// </summary>
|
||||
|
|
|
@ -1313,14 +1313,6 @@ namespace System.Management.Automation
|
|||
_disposed = true;
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// Finalizer for class SteppablePipeline.
|
||||
/// </summary>
|
||||
~SteppablePipeline()
|
||||
{
|
||||
Dispose(false);
|
||||
}
|
||||
|
||||
#endregion IDispose
|
||||
}
|
||||
|
||||
|
|
|
@ -91,14 +91,6 @@ namespace System.Management.Automation.Internal
|
|||
_disposed = true;
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// Finalizer for class PipelineProcessor.
|
||||
/// </summary>
|
||||
~PipelineProcessor()
|
||||
{
|
||||
Dispose(false);
|
||||
}
|
||||
|
||||
#endregion IDispose
|
||||
|
||||
#region Execution Logging
|
||||
|
|
Loading…
Reference in a new issue