Bläddra i källkod

Merge pull request #28749 from runcom/remove-notneeded-unmarshal

daemon: remove not needed unmarshal
Vincent Demeester 8 år sedan
förälder
incheckning
bbe1a7f84f
1 ändrade filer med 0 tillägg och 7 borttagningar
  1. 0 7
      daemon/daemon_unix.go

+ 0 - 7
daemon/daemon_unix.go

@@ -4,7 +4,6 @@ package daemon
 
 
 import (
 import (
 	"bytes"
 	"bytes"
-	"encoding/json"
 	"fmt"
 	"fmt"
 	"io/ioutil"
 	"io/ioutil"
 	"net"
 	"net"
@@ -1281,12 +1280,6 @@ func (daemon *Daemon) setupSeccompProfile() error {
 			return fmt.Errorf("opening seccomp profile (%s) failed: %v", daemon.configStore.SeccompProfile, err)
 			return fmt.Errorf("opening seccomp profile (%s) failed: %v", daemon.configStore.SeccompProfile, err)
 		}
 		}
 		daemon.seccompProfile = b
 		daemon.seccompProfile = b
-		p := struct {
-			DefaultAction string `json:"defaultAction"`
-		}{}
-		if err := json.Unmarshal(daemon.seccompProfile, &p); err != nil {
-			return err
-		}
 	}
 	}
 	return nil
 	return nil
 }
 }