mirror of
https://github.com/Motorhead1991/qemu.git
synced 2026-03-04 09:04:39 -07:00
qapi: remove empty flat union branches and types
Flat unions may now have uncovered branches, so it is possible to get rid of empty types defined for that purpose only. Signed-off-by: Anton Nefedov <anton.nefedov@virtuozzo.com> Reviewed-by: Markus Armbruster <armbru@redhat.com> Message-Id: <1529311206-76847-3-git-send-email-anton.nefedov@virtuozzo.com> Signed-off-by: Markus Armbruster <armbru@redhat.com>
This commit is contained in:
parent
800877bb16
commit
29cd0403f1
7 changed files with 7 additions and 138 deletions
19
qapi/ui.json
19
qapi/ui.json
|
|
@ -995,17 +995,6 @@
|
|||
'events' : [ 'InputEvent' ] } }
|
||||
|
||||
|
||||
##
|
||||
# @DisplayNoOpts:
|
||||
#
|
||||
# Empty struct for displays without config options.
|
||||
#
|
||||
# Since: 2.12
|
||||
#
|
||||
##
|
||||
{ 'struct' : 'DisplayNoOpts',
|
||||
'data' : { } }
|
||||
|
||||
##
|
||||
# @DisplayGTK:
|
||||
#
|
||||
|
|
@ -1068,10 +1057,4 @@
|
|||
'*window-close' : 'bool',
|
||||
'*gl' : 'DisplayGLMode' },
|
||||
'discriminator' : 'type',
|
||||
'data' : { 'default' : 'DisplayNoOpts',
|
||||
'none' : 'DisplayNoOpts',
|
||||
'gtk' : 'DisplayGTK',
|
||||
'sdl' : 'DisplayNoOpts',
|
||||
'egl-headless' : 'DisplayNoOpts',
|
||||
'curses' : 'DisplayNoOpts',
|
||||
'cocoa' : 'DisplayNoOpts' } }
|
||||
'data' : { 'gtk' : 'DisplayGTK' } }
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue