diff options
author | Christian Linhart <chris@DemoRecorder.com> | 2014-11-02 13:46:58 +0100 |
---|---|---|
committer | Christian Linhart <chris@demorecorder.com> | 2014-11-03 11:23:16 +0100 |
commit | 18ff453edd42712ea4d1e7218bbe8829f9f4caba (patch) | |
tree | ea80a2bd3326c6c3db9d77152de6f0e6a5327fb3 /src/c_client.py | |
parent | d905b886185fd8e0d9d7f70e0d112cb58ab86f98 (diff) |
_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
Diffstat (limited to 'src/c_client.py')
-rw-r--r-- | src/c_client.py | 5 |
1 files changed, 0 insertions, 5 deletions
diff --git a/src/c_client.py b/src/c_client.py index 5a41f9a..21359b5 100644 --- a/src/c_client.py +++ b/src/c_client.py @@ -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: |