Skip to content

Commit

Permalink
Merge pull request #564 from yuzhiquan/remove-unused-func
Browse files Browse the repository at this point in the history
Remove unused function
  • Loading branch information
bboreham authored Jan 11, 2021
2 parents 3819ef7 + ebce6d0 commit 48a97a7
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 48a97a7

Please sign in to comment.