summaryrefslogtreecommitdiff
path: root/util
diff options
context:
space:
mode:
authorEdward Welbourne <edward.welbourne@qt.io>2018-08-13 14:46:02 +0200
committerEdward Welbourne <edward.welbourne@qt.io>2018-08-23 09:07:19 +0000
commit9acd05361923a24ce0dab8477e4e46bf7cb8d22d (patch)
treefdc4c0bd3cd046571b5635e62b691f7f2615cc52 /util
parentbc5953f35ba12a6bc4fa9ed27a0f8113abeaebc8 (diff)
downloadqtbase-9acd05361923a24ce0dab8477e4e46bf7cb8d22d.tar.gz
Skip a few unused assignments
Change-Id: Ia631627fb2e4e7eacf912a08d168e7b0a5700db7 Reviewed-by: Jędrzej Nowacki <jedrzej.nowacki@qt.io>
Diffstat (limited to 'util')
-rw-r--r--util/local_database/xpathlite.py4
1 files changed, 0 insertions, 4 deletions
diff --git a/util/local_database/xpathlite.py b/util/local_database/xpathlite.py
index a1ed42812d..b3f8325569 100644
--- a/util/local_database/xpathlite.py
+++ b/util/local_database/xpathlite.py
@@ -213,12 +213,8 @@ def _fixedLookupChain(dirname, name):
return items
def _findEntry(base, path, draft=None, attribute=None):
- file = base
if base.endswith(".xml"):
- filename = base
base = base[:-4]
- else:
- file = base + ".xml"
(dirname, filename) = os.path.split(base)
items = _fixedLookupChain(dirname, filename)