Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -705,14 +705,6 @@ public void Dispose()
GC.SuppressFinalize(this);
}

/// <summary>
/// Finalizer.
/// </summary>
~ContentCommandBase()
{
Dispose(false);
}
#endregion IDisposable

}
}
Original file line number Diff line number Diff line change
Expand Up @@ -492,13 +492,5 @@ public void Dispose()
this.Dispose(true);
GC.SuppressFinalize(this);
}

/// <summary>
/// Finalizer.
/// </summary>
~OutGridViewCommand()
{
Dispose(false);
}
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -63,14 +63,6 @@ public class ShowCommandCommand : PSCmdlet, IDisposable
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.
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -149,14 +149,6 @@ public void Dispose()
GC.SuppressFinalize(this);
}

/// <summary>
/// Finalizer.
/// </summary>
~TeeObjectCommand()
{
Dispose(false);
}

#region private
private CommandWrapper _commandWrapper;
private bool _alreadyDisposed;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -957,14 +957,6 @@ private void Dispose(bool disposing)
_disposed = true;
}

/// <summary>
/// Finalizer for class CommandProcessorBase.
/// </summary>
~CommandProcessorBase()
{
Dispose(false);
}

#endregion IDispose
}
}
8 changes: 0 additions & 8 deletions src/System.Management.Automation/engine/EventManager.cs
Original file line number Diff line number Diff line change
Expand Up @@ -1510,14 +1510,6 @@ protected virtual void OnForwardEvent(PSEventArgs e)
ForwardEvent?.Invoke(this, e);
}

/// <summary>
/// Destructor for the EventManager class.
/// </summary>
~PSLocalEventManager()
{
Dispose(false);
}

/// <summary>
/// Disposes the EventManager class.
/// </summary>
Expand Down
8 changes: 0 additions & 8 deletions src/System.Management.Automation/engine/lang/scriptblock.cs
Original file line number Diff line number Diff line change
Expand Up @@ -1313,14 +1313,6 @@ private void Dispose(bool disposing)
_disposed = true;
}

/// <summary>
/// Finalizer for class SteppablePipeline.
/// </summary>
~SteppablePipeline()
{
Dispose(false);
}

#endregion IDispose
}

Expand Down
8 changes: 0 additions & 8 deletions src/System.Management.Automation/engine/pipeline.cs
Original file line number Diff line number Diff line change
Expand Up @@ -91,14 +91,6 @@ private void Dispose(bool disposing)
_disposed = true;
}

/// <summary>
/// Finalizer for class PipelineProcessor.
/// </summary>
~PipelineProcessor()
{
Dispose(false);
}

#endregion IDispose

#region Execution Logging
Expand Down