qemu: remove redundant code

It looks to be left over due to merge conflicts.

Signed-off-by: Peng Tao <bergwolf@gmail.com>
This commit is contained in:
Peng Tao 2018-08-03 16:28:56 +08:00
parent 244917c99d
commit 568b65c275

View File

@ -416,21 +416,6 @@ func (q *qemu) createSandbox() error {
return fmt.Errorf("UUID should not be empty")
}
monitorSockPath, err := q.qmpSocketPath(q.id)
if err != nil {
return err
}
q.qmpMonitorCh = qmpChannel{
ctx: context.Background(),
path: monitorSockPath,
}
err = os.MkdirAll(filepath.Dir(monitorSockPath), dirMode)
if err != nil {
return err
}
qmpSockets, err := q.createQmpSocket()
if err != nil {
return err