_c_helper_fieldaccess_expr: remove handling for empty sep ListInputDevices-V6
authorChristian Linhart <chris@demorecorder.com>
Thu, 30 Oct 2014 14:32:00 +0000 (15:32 +0100)
committerChristian Linhart <chris@demorecorder.com>
Thu, 30 Oct 2014 14:37:39 +0000 (15:37 +0100)
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>
Message-ID: <1414679520-50871-3-git-send-email-chris@demorecorder.com>
Patch-Thread-Subject: [Xcb] xinput: make ListInputDevices work, sumof with nested expr, ...
Patch-Set: ListInputDevices
Patch-Number: libxcb 9/9
Patch-Version: V1
Signed-off-by: Christian Linhart <chris@DemoRecorder.com>
src/c_client.py

index c4b7d76..b0d9cad 100644 (file)
@@ -578,11 +578,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: