_c_helper_fieldaccess_expr: remove handling for empty sep
The loop-variable "sep" is never empty in function "_c_helper_fieldaccess_expr", after a fix elsewhere. Therefore I removed the handling of the case of "sep" being empty. Thanks to Ran Benita for the hint that this can be removed. Signed-off-by: Christian Linhart <chris@demorecorder.com> Reviewed-by: Ran Benita <ran234@gmail.com> Message-ID: <545627C2.3050608@DemoRecorder.com> Patch-Thread-Subject: [Xcb] [PATCHSET] ListInputDevices revision 2 Patch-Set: ListInputDevices Patch-Number: libxcb 9/9 Patch-Version: V1
This commit is contained in:
parent
d905b88618
commit
18ff453edd
|
@ -568,11 +568,6 @@ def _c_helper_fieldaccess_expr(prefix, field=None):
|
|||
last_sep =''
|
||||
for name, sep, obj in prefix:
|
||||
prefix_str += last_sep + name
|
||||
if '' == sep:
|
||||
sep = '->'
|
||||
if ((obj.is_case_or_bitcase and obj.has_name) or # named bitcase
|
||||
(obj.is_switch and len(obj.parents)>1)):
|
||||
sep = '.'
|
||||
last_sep = sep
|
||||
|
||||
if field is None:
|
||||
|
|
Loading…
Reference in New Issue