Remove unnecessary finalizers (#14248)

This commit is contained in:
xtqqczze 2020-11-24 20:30:42 +00:00 committed by GitHub
parent c7bdb24ff3
commit 15e4e8a6af
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
8 changed files with 0 additions and 64 deletions

View file

@ -705,14 +705,6 @@ namespace Microsoft.PowerShell.Commands
GC.SuppressFinalize(this);
}
/// <summary>
/// Finalizer.
/// </summary>
~ContentCommandBase()
{
Dispose(false);
}
#endregion IDisposable
}
}

View file

@ -492,13 +492,5 @@ namespace Microsoft.PowerShell.Commands
this.Dispose(true);
GC.SuppressFinalize(this);
}
/// <summary>
/// Finalizer.
/// </summary>
~OutGridViewCommand()
{
Dispose(false);
}
}
}

View file

@ -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.

View file

@ -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;

View file

@ -957,14 +957,6 @@ namespace System.Management.Automation
_disposed = true;
}
/// <summary>
/// Finalizer for class CommandProcessorBase.
/// </summary>
~CommandProcessorBase()
{
Dispose(false);
}
#endregion IDispose
}
}

View file

@ -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>

View file

@ -1313,14 +1313,6 @@ namespace System.Management.Automation
_disposed = true;
}
/// <summary>
/// Finalizer for class SteppablePipeline.
/// </summary>
~SteppablePipeline()
{
Dispose(false);
}
#endregion IDispose
}

View file

@ -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