Remove some dead assignments

Signed-off-by: Niels Thykier <niels@thykier.net>
This commit is contained in:
Niels Thykier 2021-01-10 13:54:52 +00:00 committed by Patrick Storz
parent 7b9c4ee935
commit a7a16799a2

View file

@ -3401,7 +3401,6 @@ def properlySizeDoc(docElement, options):
# parse viewBox attribute # parse viewBox attribute
vbSep = RE_COMMA_WSP.split(docElement.getAttribute('viewBox')) vbSep = RE_COMMA_WSP.split(docElement.getAttribute('viewBox'))
# if we have a valid viewBox we need to check it # if we have a valid viewBox we need to check it
vbWidth, vbHeight = 0, 0
if len(vbSep) == 4: if len(vbSep) == 4:
try: try:
# if x or y are specified and non-zero then it is not ok to overwrite it # if x or y are specified and non-zero then it is not ok to overwrite it
@ -3436,7 +3435,6 @@ def remapNamespacePrefix(node, oldprefix, newprefix):
parent = node.parentNode parent = node.parentNode
# create a replacement node # create a replacement node
newNode = None
if newprefix != '': if newprefix != '':
newNode = doc.createElementNS(namespace, newprefix + ":" + localName) newNode = doc.createElementNS(namespace, newprefix + ":" + localName)
else: else: