From 30b8712e93819b2da77e67e16f9c7b81fd3a0cb4 Mon Sep 17 00:00:00 2001 From: Antonio Murdaca Date: Wed, 23 Nov 2016 12:53:25 +0100 Subject: [PATCH] daemon: remove not needed unmarshal Signed-off-by: Antonio Murdaca --- daemon/daemon_unix.go | 7 ------- 1 file changed, 7 deletions(-) diff --git a/daemon/daemon_unix.go b/daemon/daemon_unix.go index 0fcde55fa8..2947af79a1 100644 --- a/daemon/daemon_unix.go +++ b/daemon/daemon_unix.go @@ -4,7 +4,6 @@ package daemon import ( "bytes" - "encoding/json" "fmt" "io/ioutil" "net" @@ -1281,12 +1280,6 @@ func (daemon *Daemon) setupSeccompProfile() error { return fmt.Errorf("opening seccomp profile (%s) failed: %v", daemon.configStore.SeccompProfile, err) } daemon.seccompProfile = b - p := struct { - DefaultAction string `json:"defaultAction"` - }{} - if err := json.Unmarshal(daemon.seccompProfile, &p); err != nil { - return err - } } return nil }