From d8a2972cb1b1d91f4d7d85b98ebab19a0bc552a6 Mon Sep 17 00:00:00 2001 From: Sebastiaan van Stijn Date: Sat, 8 Jul 2017 16:33:30 -0700 Subject: [PATCH] Remove unused prune functions Signed-off-by: Sebastiaan van Stijn --- cli/command/prune/prune.go | 21 --------------------- 1 file changed, 21 deletions(-) diff --git a/cli/command/prune/prune.go b/cli/command/prune/prune.go index e916a8283e..12429da907 100644 --- a/cli/command/prune/prune.go +++ b/cli/command/prune/prune.go @@ -7,29 +7,8 @@ import ( "github.com/docker/cli/cli/command/network" "github.com/docker/cli/cli/command/volume" "github.com/docker/cli/opts" - "github.com/spf13/cobra" ) -// NewContainerPruneCommand returns a cobra prune command for containers -func NewContainerPruneCommand(dockerCli command.Cli) *cobra.Command { - return container.NewPruneCommand(dockerCli) -} - -// NewVolumePruneCommand returns a cobra prune command for volumes -func NewVolumePruneCommand(dockerCli command.Cli) *cobra.Command { - return volume.NewPruneCommand(dockerCli) -} - -// NewImagePruneCommand returns a cobra prune command for images -func NewImagePruneCommand(dockerCli command.Cli) *cobra.Command { - return image.NewPruneCommand(dockerCli) -} - -// NewNetworkPruneCommand returns a cobra prune command for Networks -func NewNetworkPruneCommand(dockerCli command.Cli) *cobra.Command { - return network.NewPruneCommand(dockerCli) -} - // RunContainerPrune executes a prune command for containers func RunContainerPrune(dockerCli command.Cli, filter opts.FilterOpt) (uint64, string, error) { return container.RunPrune(dockerCli, filter)