diff --git a/plugins/ipam/host-local/main.go b/plugins/ipam/host-local/main.go index b5a8f84c4..79269013c 100644 --- a/plugins/ipam/host-local/main.go +++ b/plugins/ipam/host-local/main.go @@ -15,7 +15,6 @@ package main import ( - "encoding/json" "fmt" "net" "strings" @@ -34,14 +33,6 @@ func main() { skel.PluginMain(cmdAdd, cmdCheck, cmdDel, version.All, bv.BuildString("host-local")) } -func loadNetConf(bytes []byte) (*types.NetConf, string, error) { - n := &types.NetConf{} - if err := json.Unmarshal(bytes, n); err != nil { - return nil, "", fmt.Errorf("failed to load netconf: %v", err) - } - return n, n.CNIVersion, nil -} - func cmdCheck(args *skel.CmdArgs) error { ipamConf, _, err := allocator.LoadIPAMConfig(args.StdinData, args.Args)