From b7106a92f26271e0d2c6623446ce4a8bc987c445 Mon Sep 17 00:00:00 2001 From: John Howard Date: Thu, 2 Feb 2017 11:16:11 -0800 Subject: [PATCH] Windows: Remove unused commandLine Signed-off-by: John Howard --- libcontainerd/client_windows.go | 4 +--- libcontainerd/process_windows.go | 5 +---- 2 files changed, 2 insertions(+), 7 deletions(-) diff --git a/libcontainerd/client_windows.go b/libcontainerd/client_windows.go index 9839608f76..30b3b6c4cc 100644 --- a/libcontainerd/client_windows.go +++ b/libcontainerd/client_windows.go @@ -251,7 +251,6 @@ func (clnt *client) Create(containerID string, checkpoint string, checkpointDir client: clnt, friendlyName: InitFriendlyName, }, - commandLine: strings.Join(spec.Process.Args, " "), }, processes: make(map[string]*process), }, @@ -354,8 +353,7 @@ func (clnt *client) AddProcess(ctx context.Context, containerID, processFriendly client: clnt, systemPid: uint32(pid), }, - commandLine: createProcessParms.CommandLine, - hcsProcess: newProcess, + hcsProcess: newProcess, } // Add the process to the container's list of processes diff --git a/libcontainerd/process_windows.go b/libcontainerd/process_windows.go index 57ecc948d0..854c4dd1f0 100644 --- a/libcontainerd/process_windows.go +++ b/libcontainerd/process_windows.go @@ -13,10 +13,7 @@ type process struct { processCommon // Platform specific fields are below here. - - // commandLine is to support returning summary information for docker top - commandLine string - hcsProcess hcsshim.Process + hcsProcess hcsshim.Process } type autoClosingReader struct {