Clean latest api doc from PortMapping and outdated error check

Regarding the outdated error check, there's no `docker.PortMapping`
struct anymore and this is linked to something really old #1334

Signed-off-by: Antonio Murdaca <runcom@linux.com>
Upstream-commit: 137c12f19a6838eeebfd45c459b883bb69f53d36
Component: engine
This commit is contained in:
Antonio Murdaca
2015-09-03 11:01:55 +02:00
parent 34cffe24d5
commit 3b4e85f885
2 changed files with 2 additions and 6 deletions
+1 -3
View File
@@ -8,7 +8,6 @@ import (
"io/ioutil"
"os"
"path/filepath"
"strings"
"sync"
"syscall"
"time"
@@ -105,8 +104,7 @@ func (container *Container) fromDisk() error {
dec := json.NewDecoder(jsonSource)
// Load container settings
// udp broke compat of docker.PortMapping, but it's not used when loading a container, we can skip it
if err := dec.Decode(container); err != nil && !strings.Contains(err.Error(), "docker.PortMapping") {
if err := dec.Decode(container); err != nil {
return err
}