From 997cb233996c3c08ff6fbad245689167e854a801 Mon Sep 17 00:00:00 2001 From: Samuel Ortiz Date: Fri, 30 Sep 2016 15:46:57 +0200 Subject: [PATCH] qemu: Remove dead code appendCharDevice() got replaced by the CharDevice's QemuParams method but never got deleted. Signed-off-by: Samuel Ortiz --- qemu.go | 17 ----------------- 1 file changed, 17 deletions(-) diff --git a/qemu.go b/qemu.go index 974ebfb93..9cc7145f4 100644 --- a/qemu.go +++ b/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