mirror of
https://github.com/kata-containers/kata-containers.git
synced 2025-04-28 11:44:38 +00:00
qemu: Remove dead code
appendCharDevice() got replaced by the CharDevice's QemuParams method but never got deleted. Signed-off-by: Samuel Ortiz <sameo@linux.intel.com>
This commit is contained in:
parent
e555f565f4
commit
997cb23399
17
qemu.go
17
qemu.go
@ -276,23 +276,6 @@ func (cdev CharDevice) Valid() bool {
|
||||
return true
|
||||
}
|
||||
|
||||
func appendCharDevice(params []string, cdev CharDevice) ([]string, error) {
|
||||
if cdev.Valid() == false {
|
||||
return nil, fmt.Errorf("Invalid character device")
|
||||
}
|
||||
|
||||
var cdevParams []string
|
||||
|
||||
cdevParams = append(cdevParams, string(cdev.Backend))
|
||||
cdevParams = append(cdevParams, fmt.Sprintf(",id=%s", cdev.ID))
|
||||
cdevParams = append(cdevParams, fmt.Sprintf(",path=%s", cdev.Path))
|
||||
|
||||
params = append(params, "-chardev")
|
||||
params = append(params, strings.Join(cdevParams, ""))
|
||||
|
||||
return params, nil
|
||||
}
|
||||
|
||||
// QemuParams returns the qemu parameters built out of this character device.
|
||||
func (cdev CharDevice) QemuParams(config *Config) []string {
|
||||
var cdevParams []string
|
||||
|
Loading…
Reference in New Issue
Block a user