c_client.py: remove unneeded call to get_serialize_params()

The results are not used, and the function doesn't have side effects.

Signed-off-by: Ran Benita <ran234@gmail.com>
Reviewed-by: Christian Linhart <chris@demorecorder.com>
This commit is contained in:
Ran Benita 2014-10-12 21:58:03 +03:00 committed by Christian Linhart
parent e3ec1f7463
commit 1b37d6ad3a

View File

@ -918,7 +918,6 @@ def _c_serialize_helper_switch_field(context, self, field, c_switch_variable, pr
handle switch by calling _serialize() or _unpack(), depending on context handle switch by calling _serialize() or _unpack(), depending on context
""" """
# switch is handled by this function as a special case # switch is handled by this function as a special case
param_fields, wire_fields, params = get_serialize_params(context, self)
field_mapping = _c_helper_field_mapping(self, prefix) field_mapping = _c_helper_field_mapping(self, prefix)
prefix_str = _c_helper_fieldaccess_expr(prefix) prefix_str = _c_helper_fieldaccess_expr(prefix)