Skip to content

Commit

Permalink
chore: Remove obsolete member CleanUpAsync(CancellationToken)
Browse files Browse the repository at this point in the history
  • Loading branch information
HofmeisterAn committed Feb 17, 2023
1 parent 75eae17 commit 46cd5b0
Showing 1 changed file with 0 additions and 14 deletions.
14 changes: 0 additions & 14 deletions src/Testcontainers/Containers/DockerContainer.cs
Original file line number Diff line number Diff line change
Expand Up @@ -258,20 +258,6 @@ await this.DisposeAsyncCore()
GC.SuppressFinalize(this);
}

/// <summary>
/// Deletes the container.
/// </summary>
/// <param name="ct">Cancellation token.</param>
/// <returns>Task that completes when the container has been deleted.</returns>
[Obsolete("Use DisposeAsync() instead.")]
public Task CleanUpAsync(CancellationToken ct = default)
{
using (_ = new AcquireLock(this.semaphoreSlim))
{
return this.UnsafeDeleteAsync(ct);
}
}

/// <inheritdoc />
public virtual Task StartAsync(CancellationToken ct = default)
{
Expand Down

0 comments on commit 46cd5b0

Please sign in to comment.