Bladeren bron

daemon: remove not needed unmarshal

Signed-off-by: Antonio Murdaca <runcom@redhat.com>
Antonio Murdaca 8 jaren geleden
bovenliggende
commit
30b8712e93
1 gewijzigde bestanden met toevoegingen van 0 en 7 verwijderingen
  1. 0 7
      daemon/daemon_unix.go

+ 0 - 7
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
 }