Skip to content

Commit

Permalink
Remove unnecessary finalizers
Browse files Browse the repository at this point in the history
  • Loading branch information
Michał Drzymała committed May 18, 2021
1 parent 8ca32fa commit c34ad23
Show file tree
Hide file tree
Showing 4 changed files with 0 additions and 53 deletions.
13 changes: 0 additions & 13 deletions src/Renci.SshNet/KeyboardInteractiveAuthenticationMethod.cs
Original file line number Diff line number Diff line change
Expand Up @@ -130,18 +130,5 @@ private void Session_UserAuthenticationInformationRequestReceived(object sender,
}
});
}

#region IDisposable Members

/// <summary>
/// Releases unmanaged resources and performs other cleanup operations before the
/// <see cref="KeyboardInteractiveAuthenticationMethod"/> is reclaimed by garbage collection.
/// </summary>
~KeyboardInteractiveAuthenticationMethod()
{
Dispose(false);
}

#endregion
}
}
14 changes: 0 additions & 14 deletions src/Renci.SshNet/NoneAuthenticationMethod.cs
Original file line number Diff line number Diff line change
Expand Up @@ -81,19 +81,5 @@ private void Session_UserAuthenticationFailureReceived(object sender, MessageEve

_authenticationCompleted.Set();
}

#region IDisposable Members

/// <summary>
/// Releases unmanaged resources and performs other cleanup operations before the
/// <see cref="NoneAuthenticationMethod"/> is reclaimed by garbage collection.
/// </summary>
~NoneAuthenticationMethod()
{
Dispose(false);
}

#endregion

}
}
13 changes: 0 additions & 13 deletions src/Renci.SshNet/PasswordAuthenticationMethod.cs
Original file line number Diff line number Diff line change
Expand Up @@ -158,18 +158,5 @@ private void Session_UserAuthenticationPasswordChangeRequiredReceived(object sen
}
});
}

#region IDisposable Members

/// <summary>
/// Releases unmanaged resources and performs other cleanup operations before the
/// <see cref="PasswordAuthenticationMethod"/> is reclaimed by garbage collection.
/// </summary>
~PasswordAuthenticationMethod()
{
Dispose(false);
}

#endregion
}
}
13 changes: 0 additions & 13 deletions src/Renci.SshNet/PrivateKeyAuthenticationMethod.cs
Original file line number Diff line number Diff line change
Expand Up @@ -146,19 +146,6 @@ private void Session_UserAuthenticationPublicKeyReceived(object sender, MessageE
_authenticationCompleted.Set();
}

#region IDisposable Members

/// <summary>
/// Releases unmanaged resources and performs other cleanup operations before the
/// <see cref="PasswordConnectionInfo"/> is reclaimed by garbage collection.
/// </summary>
~PrivateKeyAuthenticationMethod()
{
Dispose(false);
}

#endregion

private class SignatureData : SshData
{
private readonly RequestMessagePublicKey _message;
Expand Down

0 comments on commit c34ad23

Please sign in to comment.