Skip to content

Commit dbfd31c

Browse files
committed
cmd/cdi: remove commented out code
Signed-off-by: Markus Lehtonen <markus.lehtonen@intel.com>
1 parent 1b24d96 commit dbfd31c

File tree

1 file changed

+0
-34
lines changed

1 file changed

+0
-34
lines changed

cmd/cdi/cmd/resolve.go

Lines changed: 0 additions & 34 deletions
Original file line numberDiff line numberDiff line change
@@ -47,40 +47,6 @@ resolves any CDI Devices present in the Spec and dumps the result.`,
4747
},
4848
}
4949

50-
/*
51-
func resolveDevices(ociSpecFiles ...string) error {
52-
for _, ociSpecFile := range ociSpecFiles {
53-
ociSpec, err := readOCISpec(ociSpecFile)
54-
if err != nil {
55-
return err
56-
}
57-
58-
resolved, err := cdi.ResolveDevices(ociSpec)
59-
if err != nil {
60-
return errors.Wrapf(err, "CDI device resolution failed in %q",
61-
ociSpecFile)
62-
}
63-
64-
output := injectCfg.output
65-
if output == "" {
66-
if filepath.Ext(ociSpecFile) == ".json" {
67-
output = "json"
68-
} else {
69-
output = "yaml"
70-
}
71-
}
72-
73-
if resolved != nil {
74-
fmt.Printf("OCI Spec %q: resolved devices %q\n", ociSpecFile,
75-
strings.Join(resolved, ", "))
76-
fmt.Printf("%s", marshalObject(2, ociSpec, output))
77-
}
78-
}
79-
80-
return nil
81-
}
82-
*/
83-
8450
var (
8551
resolveCfg resolveFlags
8652
)

0 commit comments

Comments
 (0)