Browse code

Windows: Remove unused commandLine

Signed-off-by: John Howard <jhoward@microsoft.com>

John Howard authored on 2017/02/03 04:16:11
Showing 2 changed files
... ...
@@ -251,7 +251,6 @@ func (clnt *client) Create(containerID string, checkpoint string, checkpointDir
251 251
 					client:       clnt,
252 252
 					friendlyName: InitFriendlyName,
253 253
 				},
254
-				commandLine: strings.Join(spec.Process.Args, " "),
255 254
 			},
256 255
 			processes: make(map[string]*process),
257 256
 		},
... ...
@@ -354,8 +353,7 @@ func (clnt *client) AddProcess(ctx context.Context, containerID, processFriendly
354 354
 			client:       clnt,
355 355
 			systemPid:    uint32(pid),
356 356
 		},
357
-		commandLine: createProcessParms.CommandLine,
358
-		hcsProcess:  newProcess,
357
+		hcsProcess: newProcess,
359 358
 	}
360 359
 
361 360
 	// Add the process to the container's list of processes
... ...
@@ -13,10 +13,7 @@ type process struct {
13 13
 	processCommon
14 14
 
15 15
 	// Platform specific fields are below here.
16
-
17
-	// commandLine is to support returning summary information for docker top
18
-	commandLine string
19
-	hcsProcess  hcsshim.Process
16
+	hcsProcess hcsshim.Process
20 17
 }
21 18
 
22 19
 type autoClosingReader struct {