@@ -343,50 +343,6 @@ func (container *Container) ExitOnNext() {
343343 container .monitor .ExitOnNext ()
344344}
345345
346- func (container * Container ) pause () error {
347- container .Lock ()
348- defer container .Unlock ()
349-
350- // We cannot Pause the container which is not running
351- if ! container .Running {
352- return derr .ErrorCodeNotRunning .WithArgs (container .ID )
353- }
354-
355- // We cannot Pause the container which is already paused
356- if container .Paused {
357- return derr .ErrorCodeAlreadyPaused .WithArgs (container .ID )
358- }
359-
360- if err := container .daemon .execDriver .Pause (container .command ); err != nil {
361- return err
362- }
363- container .Paused = true
364- container .logEvent ("pause" )
365- return nil
366- }
367-
368- func (container * Container ) unpause () error {
369- container .Lock ()
370- defer container .Unlock ()
371-
372- // We cannot unpause the container which is not running
373- if ! container .Running {
374- return derr .ErrorCodeNotRunning .WithArgs (container .ID )
375- }
376-
377- // We cannot unpause the container which is not paused
378- if ! container .Paused {
379- return derr .ErrorCodeNotPaused .WithArgs (container .ID )
380- }
381-
382- if err := container .daemon .execDriver .Unpause (container .command ); err != nil {
383- return err
384- }
385- container .Paused = false
386- container .logEvent ("unpause" )
387- return nil
388- }
389-
390346// Resize changes the TTY of the process running inside the container
391347// to the given height and width. The container must be running.
392348func (container * Container ) Resize (h , w int ) error {
0 commit comments