Skip to content

Commit

Permalink
remove unused function
Browse files Browse the repository at this point in the history
Signed-off-by: yuzhiquan <[email protected]>
  • Loading branch information
yuzhiquan committed Jan 11, 2021
1 parent 3819ef7 commit ebce6d0
Showing 1 changed file with 0 additions and 9 deletions.
9 changes: 0 additions & 9 deletions plugins/ipam/host-local/main.go
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,6 @@
package main

import (
"encoding/json"
"fmt"
"net"
"strings"
Expand All @@ -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)
Expand Down

0 comments on commit ebce6d0

Please sign in to comment.