Merge pull request #564 from yuzhiquan/remove-unused-func
Remove unused function
This commit is contained in:
commit
48a97a7ad1
@ -15,7 +15,6 @@
|
|||||||
package main
|
package main
|
||||||
|
|
||||||
import (
|
import (
|
||||||
"encoding/json"
|
|
||||||
"fmt"
|
"fmt"
|
||||||
"net"
|
"net"
|
||||||
"strings"
|
"strings"
|
||||||
@ -34,14 +33,6 @@ func main() {
|
|||||||
skel.PluginMain(cmdAdd, cmdCheck, cmdDel, version.All, bv.BuildString("host-local"))
|
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 {
|
func cmdCheck(args *skel.CmdArgs) error {
|
||||||
|
|
||||||
ipamConf, _, err := allocator.LoadIPAMConfig(args.StdinData, args.Args)
|
ipamConf, _, err := allocator.LoadIPAMConfig(args.StdinData, args.Args)
|
||||||
|
Loading…
x
Reference in New Issue
Block a user