aboutsummaryrefslogtreecommitdiff
path: root/scripts/qapi.py
diff options
context:
space:
mode:
authorMarkus Armbruster <armbru@redhat.com>2015-05-14 06:50:52 -0600
committerMarkus Armbruster <armbru@redhat.com>2015-05-14 18:20:57 +0200
commitb42e91484df9772bb0c26aa0f05390a92d564d6f (patch)
tree7953c324f269d9e45fe0375f83c0ac724cf2f1d0 /scripts/qapi.py
parent02e20c7e593363c564aae96e3c5bdc58630ce584 (diff)
qapi: Use c_enum_const() in generate_alternate_qtypes()
Missed in commit b0b5819. Signed-off-by: Markus Armbruster <armbru@redhat.com> Signed-off-by: Eric Blake <eblake@redhat.com>
Diffstat (limited to 'scripts/qapi.py')
-rw-r--r--scripts/qapi.py11
1 files changed, 0 insertions, 11 deletions
diff --git a/scripts/qapi.py b/scripts/qapi.py
index b917cadf75..3757a91346 100644
--- a/scripts/qapi.py
+++ b/scripts/qapi.py
@@ -729,17 +729,6 @@ def parse_args(typeinfo):
# value of an optional argument.
yield (argname, argentry, optional)
-def de_camel_case(name):
- new_name = ''
- for ch in name:
- if ch.isupper() and new_name:
- new_name += '_'
- if ch == '-':
- new_name += '_'
- else:
- new_name += ch.lower()
- return new_name
-
def camel_case(name):
new_name = ''
first = True