Remove now unused variable
Signed-off-by: Niels Thykier <niels@thykier.net>
This commit is contained in:
parent
6ea126d290
commit
44173c57e8
1 changed files with 0 additions and 3 deletions
|
|
@ -1386,7 +1386,6 @@ def removeDuplicateGradients(doc):
|
||||||
num = 0
|
num = 0
|
||||||
|
|
||||||
gradientsToRemove = {}
|
gradientsToRemove = {}
|
||||||
duplicateToMaster = {}
|
|
||||||
|
|
||||||
for gradType in ['linearGradient', 'radialGradient']:
|
for gradType in ['linearGradient', 'radialGradient']:
|
||||||
grads = doc.getElementsByTagName(gradType)
|
grads = doc.getElementsByTagName(gradType)
|
||||||
|
|
@ -1405,8 +1404,6 @@ def removeDuplicateGradients(doc):
|
||||||
duplicates = bucket[1:]
|
duplicates = bucket[1:]
|
||||||
|
|
||||||
gradientsToRemove[master] = duplicates
|
gradientsToRemove[master] = duplicates
|
||||||
for ograd in duplicates:
|
|
||||||
duplicateToMaster[ograd] = master
|
|
||||||
|
|
||||||
# get a collection of all elements that are referenced and their referencing elements
|
# get a collection of all elements that are referenced and their referencing elements
|
||||||
referencedIDs = findReferencedElements(doc.documentElement)
|
referencedIDs = findReferencedElements(doc.documentElement)
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue