Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Remove unused methods from DockerContainer #22094

Merged
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 @@ -51,7 +51,6 @@
import java.util.concurrent.CompletableFuture;
import java.util.concurrent.ExecutionException;
import java.util.concurrent.Executors;
import java.util.function.Consumer;

import static com.google.common.base.Preconditions.checkState;
import static com.google.common.io.MoreFiles.deleteRecursively;
Expand Down Expand Up @@ -122,54 +121,6 @@ public DockerContainer addContainerListener(ContainerListener listener)
return this;
}

public DockerContainer onContainerStarting(Consumer<InspectContainerResponse> callback)
{
return addContainerListener(new ContainerListener()
{
@Override
public void containerStarting(DockerContainer container, InspectContainerResponse response)
{
callback.accept(response);
}
});
}

public DockerContainer onContainerStarted(Consumer<InspectContainerResponse> callback)
{
return addContainerListener(new ContainerListener()
{
@Override
public void containerStarted(DockerContainer container, InspectContainerResponse containerInfo)
{
callback.accept(containerInfo);
}
});
}

public DockerContainer onContainerStopping(Consumer<InspectContainerResponse> callback)
{
return addContainerListener(new ContainerListener()
{
@Override
public void containerStopping(DockerContainer container, InspectContainerResponse response)
{
callback.accept(response);
}
});
}

public DockerContainer onContainerStopped(Consumer<InspectContainerResponse> callback)
{
return addContainerListener(new ContainerListener()
{
@Override
public void containerStopped(DockerContainer container, InspectContainerResponse response)
{
callback.accept(response);
}
});
}

@Override
public void addFileSystemBind(String hostPath, String containerPath, BindMode mode)
{
Expand Down