diff options
author | Frediano Ziglio <fziglio@redhat.com> | 2018-09-28 14:22:16 +0100 |
---|---|---|
committer | Frediano Ziglio <fziglio@redhat.com> | 2018-10-15 10:58:38 +0100 |
commit | 8a68e67afa48370adfae846b71dc4b86f70c7c0b (patch) | |
tree | e6f65c76acdd0c3d186ebe1c71d4aa96f9cec050 /python_modules/demarshal.py | |
parent | 979717350d1f6b0d849673ca42505d18261d4bca (diff) |
codegen: Remove fixedsize attribute
This attribute was used only in SPICE version 1.
The intention was use fixed size for switch type in the protocol.
However this does not bring any improvement, just increase network
bytes used.
Generated code does not change.
Signed-off-by: Frediano Ziglio <fziglio@redhat.com>
Acked-by: Christophe Fergeau <cfergeau@redhat.com>
Diffstat (limited to 'python_modules/demarshal.py')
-rw-r--r-- | python_modules/demarshal.py | 7 |
1 files changed, 0 insertions, 7 deletions
diff --git a/python_modules/demarshal.py b/python_modules/demarshal.py index 541137e..5209272 100644 --- a/python_modules/demarshal.py +++ b/python_modules/demarshal.py @@ -729,10 +729,6 @@ def write_switch_parser(writer, container, switch, dest, scope): var = container.lookup_member(switch.variable) var_type = var.member_type - if switch.has_attr("fixedsize"): - scope.variable_def("uint8_t *", "in_save") - writer.assign("in_save", "in") - first = True for c in switch.cases: check = c.get_check(dest.get_ref(switch.variable), var_type) @@ -775,9 +771,6 @@ def write_switch_parser(writer, container, switch, dest, scope): writer.newline() - if switch.has_attr("fixedsize"): - writer.assign("in", "in_save + %s" % switch.get_fixed_nw_size()) - def write_parse_ptr_function(writer, target_type): if target_type.is_array(): parse_function = "parse_array_%s" % target_type.element_type.primitive_type() |